VDB
Sign up
HIGH7.5

GO-2023-2375

Before Go 1.20, the RSA based key exchange methods in crypto/tls may exhibit a timing side channel

Quick fix

GO-2023-2375 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.20.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.20.0
Fixgo get stdlib@v1.20.0

References