7.5high
Before Go 1.20, the RSA based key exchange methods in crypto/tls may exhibit a timing side channel
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.20% (higher than 68% of CVEs)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2023-2375BIT-GOLANG-2023-45287
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| crypto/tls | before 1.20.0 | CVE List |
| stdlib (Go) | before 1.20.0 | Go Vulnerability Database |
| golang go | before 1.20.0 | NVD |
| golang (Bitnami) | before 1.20.0 | Bitnami Vulnerability Database |
All scores
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
Antes de Go 1.20, los intercambios de claves TLS basados en RSA utilizaban la librería math/big, que no es un tiempo constante. Se aplicó blinding RSA para prevenir ataques sincronizados, pero el análisis muestra que esto puede no haber sido completamente efectivo. En particular, parece que la eliminación del relleno PKCS#1 puede filtrar información de tiempo, que a su vez podría usarse para recuperar bits de clave de sesión. En Go 1.20, la librería crypto/tls cambió a una implementación RSA de tiempo completamente constante, que no creemos que muestre ningún canal lateral de temporización.
References
| https://go.dev/issue/20654 | issue-tracking, report | |
| https://go.dev/cl/326012/26 | fix, issue-tracking, report | |
| https://groups.google.com/g/golang-announce/c/QMK8IQALDvA | discussion, mailing-list, release-notes, web | |
| https://people.redhat.com/~hkario/marvin/ | advisory, article, third-party-advisory | |
| https://pkg.go.dev/vuln/GO-2023-2375 | advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20240112-0005/ | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-45287 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-45287 changed 2025-02-13 | CVE Terms of Use |
| Go Vulnerability Database | GO-2023-2375 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2023-45287 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2023-45287 changed 2026-09-08 | Apache-2.0 |