VDB
Sign up
MEDIUM5.3

GO-2023-1987

Large RSA keys can cause high CPU usage in crypto/tls

Quick fix

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

go get stdlib@v1.19.12

Details

Extremely large RSA keys in certificate chains can cause a client/server to expend significant CPU time verifying signatures.

With fix, the size of RSA keys transmitted during handshakes is restricted to <= 8192 bits.

Based on a survey of publicly trusted RSA keys, there are currently only three certificates in circulation with keys larger than this, and all three appear to be test certificates that are not actively deployed. It is possible there are larger keys in use in private PKIs, but we target the web PKI, so causing breakage here in the interests of increasing the default safety of users of crypto/tls seems reasonable.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.19.12
Fixgo get stdlib@v1.19.12

References