{"schemaVersion":4,"id":"CVE-2026-110789","aliases":["GHSA-rvfr-cqwq-rc4j"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-11-17T19:14:34.385Z","modified":"2026-11-19T04:03:17.886Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.00623,"percentile":0.51317,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00623,"percentile":0.51317}],"last30":[{"date":"2026-11-18T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0063,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00623,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00623,"percentile":0.51317}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-130","name":"Improper Handling of Length Parameter Inconsistency","description":"The product parses a formatted message or structure, but it does not handle or incorrectly handles a length field that is inconsistent with the actual length of the associated data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/130.html"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption","description":"The product does not properly control the allocation and maintenance of a limited resource.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/400.html"}],"affected":[{"vendor":"@libp2p","product":"crypto","name":"crypto","label":"crypto","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 5.1.22","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.1.22","endInclusive":false}}],"versionsText":"< 5.1.22","eol":null,"hubHref":"/vendor/libp2p/crypto"},{"vendor":"libp2p","product":"js-libp2p","name":"js-libp2p","label":"js-libp2p","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.3.8","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.3.8","endInclusive":false}}],"versionsText":"< 3.3.8","eol":null,"hubHref":"/vendor/libp2p/js-libp2p"},{"vendor":"@libp2p","product":"crypto","name":"@libp2p/crypto","label":"crypto","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@libp2p/crypto","purlType":"npm","versions":[{"text":"< 5.1.22","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"5.1.22","endInclusive":false}}],"versionsText":"< 5.1.22","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","label":"github.com/libp2p/js-libp2p/security/advisories/GHSA-rvfr-cqwq-rc4j","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/pull/3587","label":"github.com/libp2p/js-libp2p/pull/3587","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332","label":"github.com/libp2p/js-libp2p/commit/ef6e1851cb00511a4793a5e68948e0cdad385332","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22","label":"github.com/libp2p/js-libp2p/releases/tag/crypto-v5.1.22","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/libp2p/js-libp2p","label":"github.com/libp2p/js-libp2p","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-17T19:14:34.385Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-19T04:03:17.886Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"prioritise","tag":"severe","reason":"Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)","nextStep":"Check applicability and the vendor advisory: no fix release is recorded here","rank":[0,0,0,0,1,75],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00623,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-19T04:03:17.886Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-19T04:03:17.886Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-11-19T04:03:17.886Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-19T04:02:53.957Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00623,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T07:02:00.704Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T07:02:01.187Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T07:02:01.389Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T07:01:05.155Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T07:01:59.185Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T07:01:58.234Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T07:49:28.009Z","stale":false,"partial":false}}