CVE-2023-29409: Large RSA keys can cause high CPU usage in crypto/tls

Published Aug 2, 2023
·
Updated

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.

Other sources

Golang Go is vulnerable to a denial of service, caused by an uncontrolled resource consumption flaw. By persuading a victim to use a specially crafted certificate with large RSA keys, an remote attacker could exploit this vulnerability to cause a client/server to expend significant CPU time verifying signatures, and results in a denial of service condition.

— IBM

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

— Microsoft

Affected Software

23 affected componentsFixes available
Golang Go<1.19.12
Golang Go>=1.20.0<1.20.7
Golang Go=1.21.0-rc1
Golang Go=1.21.0-rc2
Golang Go=1.21.0-rc3
IBM Concert Software<=1.0.0 - 1.0.1
Microsoft cbl2 golang 1.17.13-2
Microsoft azl3 golang 1.20.7-1<1.20.7-1
1.20.7-1
Microsoft cbl2 golang 1.20.7-1<1.20.7-1
1.20.7-1
Microsoft cbl2 golang 1.18.8-7
Microsoft cbl2 golang 1.21.6-1<1.21.6-1
1.21.6-1
Microsoft cbl2 msft-golang 1.20.7-1<1.20.7-1
1.20.7-1
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
alpine/go>=1.20.0<1.20.7-r0
1.20.7-r0
redhat/go<1.20.7
1.20.7
redhat/go<1.19.12
1.19.12
ubuntu/golang-1.20*
ubuntu/golang-1.20*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/Go to a version that resolves this vulnerability.

    Fixed in 1.20.7
  2. Upgrade

    Upgrade redhat/Go to a version that resolves this vulnerability.

    Fixed in 1.19.12
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.20.7-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.21.6-1
  5. Upgrade

    Upgrade alpine/go to a version that resolves this vulnerability.

    Fixed in 1.20.7-r0
  6. Upgrade

    Upgrade golang to a version that resolves this vulnerability.

    Patch GO-2023-1987

Event History

Aug 2, 2023
CVE Published
via MITRE·07:47 PM
Data Sourced
07:47 PM
DescriptionWeakness
Data Sourced
via OSV·08:15 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 11, 2023
Data Sourced
09:00 PM
RemedySeverityAffected Software
Updated
09:00 PM
Weakness
Aug 21, 2023
Exploit Published
via GitHub·03:59 PM
Aug 31, 2023
Event
07:15 PM
Dec 21, 2023
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Updated
via IBM·12:00 AM
Affected Software
Jan 10, 2024
Data Sourced
via Red Hat·11:28 AM
DescriptionSeverityAffected Software
Aug 2, 2024
Data Sourced
via MITRE·02:07 PM
DescriptionWeakness
Oct 21, 2024
Updated
via IBM·12:00 AM
Affected Software
Apr 14, 2025
Updated
via IBM·12:00 AM
Affected Software
Sep 4, 2025
Data Sourced
via Microsoft·09:10 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:10 AM
Affected Software
Updated
via Microsoft·09:10 AM
WeaknessAffected Software
Updated
via Microsoft·09:10 AM
Weakness
Sep 3, 2026
Updated
via Microsoft·08:07 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2023-29409?

CVE-2023-29409 refers to extremely large RSA keys in certificate chains that can cause a client/server to expend significant CPU time verifying signatures.

2

What is the severity of CVE-2023-29409?

The severity of CVE-2023-29409 is medium with a severity value of 5.3.

3

Which software is affected by CVE-2023-29409?

Software affected by CVE-2023-29409 include Golang Go versions up to 1.19.12, versions between 1.20.0 and 1.20.7, version 1.21.0-rc1, version 1.21.0-rc2, and version 1.21.0-rc3.

4

What is the fix for CVE-2023-29409?

The fix for CVE-2023-29409 restricts the size of RSA keys transmitted during handshakes to <= 8192 bits.

5

Are there any references for CVE-2023-29409?

Yes, there are references available for CVE-2023-29409. You can find them [here](https://go.dev/cl/515257), [here](https://groups.google.com/g/golang-announce/c/X0b6CsSAaYI/m/Efv5DbZ9AwAJ), and [here](https://pkg.go.dev/vuln/GO-2023-1987).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203