CVE-2023-29409: Vulnerability in stdlib package - Slow verification of certificate chains containing large RSA keys

golang-1.15 Updated 02 Oct 2025

Summary

02/08/2023
N/A
No i
Medium
5.3

CVE-2023-29409: Extremely large RSA keys in certificate chains can cause a client/server to expend significant CPU time verifying signatures. Affects golang-1.15 versions < 0ae54ddd37302bdd2a8c775135bf5f076a18eeb3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The stdlib package is a part of the Go programming language's standard library. It provides a collection of essential functions, data types, and utilities that are commonly used in Go programs. The package is widely used in various applications and is considered a fundamental component of the Go ecosystem. However, a vulnerability has been discovered in the package related to the slow verification of certificate chains containing large RSA keys.

Vulnerability Detail

The vulnerability (CVE-2023-29409) in the stdlib package affects the crypto/tls module and specifically impacts the verification of certificate chains containing large RSA keys. When extremely large RSA keys are present in certificate chains, the client/server may consume significant CPU time during the signature verification process. To address this issue, the size of RSA keys transmitted during handshakes has been restricted to a maximum of 8192 bits. This limitation aims to prevent excessive CPU usage and improve the default safety of users of crypto/tls. While there are only three known certificates with keys larger than 8192 bits in circulation, they are test certificates and not actively deployed. It is possible that larger keys are used in private PKIs, but the focus of this fix is on the web PKI.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in the stdlib package related to the slow verification of certificate chains containing large RSA keys has been addressed in the fixed versions: 1.19.12, 1.20.7, and 1.21.0-rc.4. It is recommended to update the package to mitigate the potential CPU consumption issue during signature verification. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for golang-1.15 →

Share this vulnerability

FAQ

The vulnerability can cause significant CPU usage during the verification of certificate chains containing large RSA keys, potentially leading to performance degradation and resource exhaustion.

No, all known certificates with keys larger than 8192 bits are test certificates and not actively deployed.

While the fix primarily targets the web PKI, it is possible that larger keys are used in private PKIs. However, the impact on private PKIs is expected to be minimal.

The fixed versions of the stdlib package are 1.19.12, 1.20.7, and 1.21.0-rc.4.

No specific workaround has been provided for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for golang-1.15.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback