Libp2p js-libp2p
libp2p: CPU DoS via oversized IHAVE and IWANT control message arrays
libp2p is a JavaScript Implementation of libp2p networking stack. Prior to 16.0.0, @libp2p/gossipsub defaultDecodeRpcLimits set maxIhaveMessageIDs and maxIwantMessageIDs to Infinity, allowing oversized IHAVE and IWANT control message arrays in message/decodeRpc.ts and gossipsub.ts to synchronously iterate roughly 180,000 message IDs per 4 MB frame and block the Node.js event loop. This issue is fixed in version 16.0.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-770
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
libp2p js-libp2p
- < 16.0.0
Fixed in 16.0.0
Mitigation
Upgrade js-libp2p to 16.0.0 or later.
References
- Vendor advisory github.com/libp2p/js-libp2p/security/advisorie…
- Patch github.com/libp2p/js-libp2p/pull/3520
- Patch github.com/libp2p/js-libp2p/commit/773dd80ded2…
1 more
- Release notes github.com/libp2p/js-libp2p/releases/tag/gossi…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.