CVE-2023-45287
JSON

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 packageVersionsReported by
crypto/tlsbefore 1.20.0CVE List
stdlib (Go)before 1.20.0Go Vulnerability Database
golang gobefore 1.20.0NVD
golang (Bitnami)before 1.20.0Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh 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

Related

Sources

SourceRecordLicence
CVE ListCVE-2023-45287 changed 2025-02-13CVE Terms of Use
Go Vulnerability DatabaseGO-2023-2375 changed 2026-02-04CC-BY-4.0
NVDCVE-2023-45287 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2023-45287 changed 2026-09-08Apache-2.0