libp2p nodes vulnerable to attack using large RSA keys
Summary
| CVE | CVE-2023-39533 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-08-08 19:15:10 UTC |
| Updated | 2026-09-01 22:17:08 UTC |
| Description | go-libp2p is the Go implementation of the libp2p Networking Stack. Prior to versions 0.27.8, 0.28.2, and 0.29.1 malicious peer can use large RSA keys to run a resource exhaustion attack & force a node to spend time doing signature verification of the large key. This vulnerability is present in the core/crypto module of go-libp2p and can occur during the Noise handshake and the libp2p x509 extension verification step. To prevent this attack, go-libp2p versions 0.27.8, 0.28.2, and 0.29.1 restrict RSA keys to <= 8192 bits. To protect one's application, it is necessary to update to these patch releases and to use the updated Go compiler in 1.20.7 or 1.19.12. There are no known workarounds for this issue. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Problem Types: CWE-770 | CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| core/crypto: restrict RSA keys to <= 8192 bits (#2454) · libp2p/go-libp2p@e30fcf7 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch |
| core/crypto: restrict RSA keys to <= 8192 bits (#2454) · libp2p/go-libp2p@0cce607 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch |
| crypto/tls: restrict RSA keys in certificates to <= 8192 bits · golang/go@2350afd · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Not Applicable, Patch |
| crypto/tls: verifying certificate chains containing large RSA keys is slow [CVE-2023-29409] · Issue #61460 · golang/go · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Issue Tracking, Not Applicable, Vendor Advisory |
| libp2p nodes vulnerable to attack using large RSA keys · Advisory · libp2p/go-libp2p · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Vendor Advisory |
| core/crypto: restrict RSA keys to <= 8192 bits by MarcoPolo · Pull Request #2454 · libp2p/go-libp2p · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Exploit, Patch, Vendor Advisory |
| nrdax.com/techniques/NRDAX-T0205-pre-handshake-crypto-cpu-burn | [email protected] | nrdax.com | |
| update qtls to restrict RSA keys in certificates to <= 8192 bits by marten-seemann · Pull Request #4012 · quic-go/quic-go · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch, Third Party Advisory |
| core/crypto: restrict RSA keys to <= 8192 bits (#2454) · libp2p/go-libp2p@445be52 · GitHub | af854a3a-2127-422b-91ae-364da2661108 | github.com | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.