CVE-2026-110789
Description
libp2p is a JavaScript implementation of the libp2p networking stack. Prior to 5.1.22, the @libp2p/crypto code reached by the default Identify service accepts a remote peer’s crafted publicKey before peer-id or signature verification and passes it through publicKeyFromProtobuf to the ASN.1 DER decoder. readLength in packages/crypto/src/keys/rsa/der.ts accepts long-form element lengths larger than the remaining buffer, causing readInteger and related readers to loop synchronously over an attacker-claimed length from a very small key blob. Because decoding occurs in one event-loop tick before the remotePeer equality check in packages/protocol-identify/src/identify.ts, the Identify timeout cannot interrupt it, allowing repeated unauthenticated connections to stall all timers and peers and transiently exhaust memory. This issue is fixed in version 5.1.22.
Weakness
- CWE-130: Improper Handling of Length Parameter Inconsistency
- CWE-400: Uncontrolled Resource Consumption
Timeline
- 2026-11-17Published by the CNA19:14 UTC
- 2026-11-17GitHub advisory published (GHSA-rvfr-cqwq-rc4j)same day
- 2026-11-17Published in NVD20:17 UTC · 1 hour 3 minutes after the CNA
Exploit and advisory records
GitHub advisory GHSA-rvfr-cqwq-rc4j, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @libp2p/crypto | before 5.1.22 | 5.1.22 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| @libp2p crypto | ||
| libp2p js-libp2p |
References
- https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332
- https://github.com/libp2p/js-libp2p/pull/3587
- https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22
- https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-110789'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-110789'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-110789'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-110789'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).