Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessOpen libp2p connection to target node
-
DeliverySend Identify with ~15-byte crafted publicKey
-
ExploitreadLength accepts oversized long-form DER length
-
ExecutionreadInteger loops past buffer synchronously
-
PersistEvent loop stalls ~4-5s, RSS spikes ~2GB
-
ImpactReconnect repeatedly to sustain DoS/OOM-kill
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Length parameter validation
|
| Exploitation Conditions | Exploitation requires only that the target node runs the default Identify service, which is enabled by default and executes on every connection:open - so reachable against default configurations of any affected js-libp2p node using @libp2p/crypto <= 5.1.21. The crafted publicKey reaches publicKeyFromProtobuf before the connection.remotePeer.equals(id) check, making the attack pre-auth and endlessly repeatable by reconnecting. The MAX_RSA_JWK_SIZE guard bounds only total blob size (not the inner DER length field), so a ~15-byte payload defeats it, and the ECDSA path has no cap at all. LIMITING FACTORS: the worst outcome (OOM process kill) requires a memory-constrained deployment such as a container with a memory limit; without such a limit, impact is repeated ~4-5s event-loop stalls that freeze all timers, heartbeats, and peers rather than an outright crash. No authentication, user interaction, or non-default configuration is needed. |
| Impact | This is a credible, actionable availability threat rather than a high-CVSS-but-low-real-risk issue, though the impact is bounded to denial-of-service. The CVSS:3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) describes a remote, low-complexity, pre-authentication attack with no user interaction and availability-only impact - consistent with the described mechanism: a crafted publicKey reaches @libp2p/crypto's DER decoder via the default Identify service before any peer-id or signature check, so the trigger genuinely requires no privileges. The decode occurs in a single synchronous event-loop tick, which is why Identify's 5-second AbortSignal timeout cannot interrupt it - a key detail confirmed by the GHSA advisory. A full, working PoC is attached to the advisory and reproduced 3/3 (each connection stalling the victim's event loop ~4-5s and spiking RSS ~2 GB), so publicly available exploit code exists; this should not be conflated with active exploitation. The vulnerability is NOT in CISA KEV, and no EPSS score was provided in the input, so there is no signal of in-the-wild exploitation - the vuln.today Decision label is 'this_week', not act_now/emergency. Impact is availability-only (C:N/I:N), so despite the alarming 'exhaust memory' and 'all peers' language, there is no data-confidentiality or integrity exposure; the OOM-kill escalation applies specifically to memory-constrained (containerized) deployments. Note the input Tags include 'Information Disclosure', which contradicts the CVSS impact metrics (C:N) and the DoS mechanism - that tag appears mislabeled. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker opens a libp2p connection to any node running the default Identify service and sends an Identify message containing a ~15-byte crafted RSA or ECDSA publicKey whose DER long-form length field claims a huge size. The node's crypto decoder loops synchronously far past the tiny buffer, freezing the entire Node.js event loop for ~4-5 seconds and transiently allocating ~2 GB; by reconnecting repeatedly the attacker keeps the node unresponsive to all peers and, under a container memory limit, forces an OOM kill. A full working PoC is attached to the GHSA advisory and was reproduced across 3/3 connections. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Denial of service in the @libp2p/crypto package shipped with js-libp2p: a peer can send a ~15-byte malformed publicKey inside an Identify message that the ASN.1 DER decoder processes before any peer-id or signature verification, freezing the Node.js event loop for roughly 4-5 seconds and transiently allocating around 2 GB per connection. Every node running the default Identify service with @libp2p/crypto 5.1.21 or earlier is affected, and because the malformed key is handled pre-auth, an unauthenticated remote peer can repeat the stall indefinitely by reconnecting; in memory-limited containers the allocation spike can OOM-kill the process. The vendor reproduced the issue with published proof-of-concept code and fixed it in 5.1.22; there is no confirmed active exploitation (not listed in CISA KEV), and no EPSS score was supplied in the intelligence for this analysis.
RemediationAI
Vendor-released patch: upgrade @libp2p/crypto to 5.1.22, published as js-libp2p release tag crypto-v5.1.22, which adds an integer/negative/overrun check in readLength() and rejects truncated long-form length headers (GitHub PR 3587, commit ef6e1851cb00511a4793a5e68948e0cdad385332); also re-resolve the transitive @libp2p/crypto dependency in any js-libp2p deployment and verify the installed version, since the guard is present only in the patched reader and no other complete fix is documented. If upgrading cannot be done immediately, the exposure described comes from the Identify service handling unverified publicKey data on every connection, so removing the Identify service from the node's service configuration eliminates that pre-auth path at the cost of losing peer address discovery and advertisement; additionally, capping container memory does not prevent the multi-second stalls but converts the ~2 GB spike into a predictable OOM kill boundary, and rate-limiting or restricting inbound connections reduces how often an attacker can repeat the ~15-byte payload but cannot prevent the stall caused by a single accepted connection.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw sits in the hand-rolled DER reader at packages/crypto/src/keys/rsa/der.ts, which is reached through publicKeyFromProtobuf when a peer's Identify payload is parsed. readLength() accepts ASN.1 long-form element lengths without comparing the claimed value to the bytes actually remaining in the buffer, so readInteger and the sibling readers (readObjectIdentifier, readBitString, readOctetString) iterate up to an attacker-claimed length inside a single synchronous tick. This is CWE-130 (improper handling of length parameter inconsistency), escalating to CWE-400 (uncontrolled resource consumption): the existing MAX_RSA_JWK_SIZE guard bounds only the total blob size, not the inner length field, so a tiny payload defeats it, and the ECDSA path (unmarshalECDSAPublicKey) has no size cap at all. Because decoding happens before the connection.remotePeer.equals(id) check in packages/protocol-identify/src/identify.ts, the code runs pre-authentication and synchronously, so no AbortSignal - including Identify's own 5 s timeout - can interrupt it, and all timers, heartbeats and peer handling stop until the loop unwinds. A DER RangeError raised at the end of the over-read is swallowed by Identify's catch handler, letting the node survive and be re-stalled on the next connection.
Know when Libp2P gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Remote pre-auth trigger via the default-enabled Identify service with no user interaction (AV:N/AC:L/PR:N/UI:N); impact is availability-only event-loop stall/OOM, so C:N/I:N/A:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 5 npm packages depend on @libp2p/crypto (4 direct, 1 indirect)
Ecosystem-wide dependent count for version 5.1.22.
Technical POC Analysis
CWE-130 (Improper Handling of Length Parameter Inconsistency), scored by the vendor alongside CWE-400.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The @libp2p/crypto package used in js-libp2p has a high-severity denial-of-service vulnerability (CVE-2026-110789) that allows any unauthenticated peer to freeze a node's event loop for several seconds and cause ~2GB memory spikes per connection, potentially crashing containerized nodes. Every node running the default Identify service with version 5.1.21 or earlier is affected, meaning our peer-to-peer network infrastructure could experience repeated outages, impacting availability and service reliability. While no active exploitation has been confirmed, the public availability of proof-of-concept code raises the risk of opportunistic attacks.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Denial-of-service in libp2p-rendezvous ≤0.17.1 (Rust) allows a malicious rendezvous server to crash any connecting clien
Address-book poisoning in the @libp2p/peer-store component of js-libp2p (8.0.0 up to, but not including, 12.0.24) allows
go-libp2p is the Go implementation of the libp2p Networking Stack. Rated high severity (CVSS 7.5), this vulnerability is
Uncontrolled resource consumption in py-libp2p's yamux stream multiplexer allows any remote peer that completes a standa
Forged message authorship in @libp2p/gossipsub 15.0.0 through 16.0.4 lets an unauthenticated, remote attacker sign a gos
Remote unauthenticated denial of service in rust-libp2p Gossipsub affects versions prior to 0.49.5 and allows any peer t
Rust Yamux prior to version 0.13.10 is vulnerable to denial of service when processing specially crafted inbound stream
Unauthenticated remote denial of service in @libp2p/webrtc (the js-libp2p WebRTC transport) before 6.0.28 lets a single
Unauthenticated denial of service in @libp2p/floodsub before 11.0.26 (packaged with js-libp2p < 11.0.26) lets a remote p
Unbounded abort listener accumulation in js-libp2p's circuit-relay-v2 relay server allows any remote peer to exhaust mem
libp2p is a networking stack and library modularized out of The IPFS Project, and bundled separately for other tools to
go-libp2p is the offical libp2p implementation in the Go programming language. Rated high severity (CVSS 7.5), this vuln
EUVD-2026-127199
GHSA-rvfr-cqwq-rc4j
NVD
CVE.org
EPSS
Exploit-DB