{"id":"CVE-2026-110789","state":"PUBLISHED","title":"libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth","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.","publishedAt":"2026-11-17T19:14:34.385Z","updatedAt":"2026-11-19T04:03:17.886Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["libp2p js-libp2p","@libp2p crypto"],"affected":[{"vendor":"libp2p","product":"js-libp2p","versions":[{"version":"< 3.3.8","status":"affected"}]},{"vendor":"@libp2p","product":"crypto","versions":[{"version":"< 5.1.22","status":"affected"}]}],"references":["https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","https://github.com/libp2p/js-libp2p/pull/3587","https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332","https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22"],"weaknesses":["CWE-130","CWE-400"],"ingestedAt":"2026-11-19T04:16:05.387Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/110xxx/CVE-2026-110789.json","commit":"94bb610764e986ff4e1211219bacdcaf6992bce3","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-110789","state":"PUBLISHED","datePublished":"2026-11-17T19:14:34.385Z","dateUpdated":"2026-11-19T04:03:17.886Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-14T17:40:14.919Z"},"containers":{"cna":{"title":"libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"libp2p","product":"js-libp2p","versions":[{"version":"< 3.3.8","status":"affected"}]},{"vendor":"@libp2p","product":"crypto","versions":[{"version":"< 5.1.22","status":"affected"}]}],"references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","name":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/libp2p/js-libp2p/pull/3587","name":"https://github.com/libp2p/js-libp2p/pull/3587","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332","name":"https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332","tags":["x_refsource_MISC"]},{"url":"https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22","name":"https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-130","lang":"en","description":"CWE-130: Improper Handling of Length Parameter Inconsistency","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-17T19:14:34.385Z"},"source":{"advisory":"GHSA-rvfr-cqwq-rc4j","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-19T04:02:53.957057Z","id":"CVE-2026-110789","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-19T04:03:17.886Z"}}]}}}