CVE-2023-45287: Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not constant time.
High CVSS 7.5
- CVE id
- CVE-2023-45287
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Go Runtimes and servers |
< 1.20.0 | 1.20.0 |
How to fix it
Upgrade Go to 1.20.0 or later.
go version
- Build with the patched Go release (set "toolchain" in go.mod, or the golang image tag) and redeploy: Go programs include the standard library, so they must be rebuilt.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
Before Go 1.20, the RSA based TLS key exchanges used the math/big library, which is not constant time. RSA blinding was applied to prevent timing attacks, but analysis shows this may not have been fully effective. In particular it appears as if the removal of PKCS#1 padding may leak timing information, which in turn could be used to recover session key bits. In Go 1.20, the crypto/tls library switched to a fully constant time RSA implementation, which we do not believe exhibits any timing side channels.
References
- CVE-2023-45287 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2023-45287
- Web: https://go.dev/cl/326012/26
- Web: https://go.dev/issue/20654
- Web: https://groups.google.com/g/golang-announce/c/QMK8IQALDvA
- Web: https://people.redhat.com/~hkario/marvin/
- Web: https://pkg.go.dev/vuln/GO-2023-2375
- Web: https://security.netapp.com/advisory/ntap-20240112-0005/
- Web: https://go.dev/cl/326012/26
- Web: https://go.dev/issue/20654
- Web: https://groups.google.com/g/golang-announce/c/QMK8IQALDvA
- Web: https://people.redhat.com/~hkario/marvin/
- Web: https://pkg.go.dev/vuln/GO-2023-2375
- Web: https://security.netapp.com/advisory/ntap-20240112-0005/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.