Skip to main content
No exploitation reportedFix availableAwaiting NVD analysis

CVE-2026-110789

libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth

No exploitation reported by the sources we read.

  • Published2026-11-17
  • Fixed in5.1.22
  • WeaknessCWE-130 · CWE-400

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-11-1719:14CVE publishedCNA

Versions per branch

OSV
@libp2p/crypto
BranchAffectedFixed in
5.1< 5.1.225.1.22

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA2 products

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • libp2p js-libp2p
    Affected
    • = < 3.3.8no fix stated
  • @libp2p crypto
    Affected
    • = < 5.1.22no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2026-11-17

Fix

  1. Update @libp2p/crypto to 5.1.22

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.17.52026-11-17
  • CNAweakness (CWE)CWE-130, CWE-4002026-11-17
  • NVDweakness (CWE)CWE-130, CWE-400read 2026-11-17
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2026-11-17

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2026-11-17
Last Modified
2026-11-17
NVD status
Received
GitHub Advisory
GHSA-rvfr-cqwq-rc4j

Frequently asked questions

What is CVE-2026-110789?

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.

Is CVE-2026-110789 actively exploited?

Active exploitation of CVE-2026-110789 has not been confirmed.

What is the CVSS score for CVE-2026-110789?

CVE-2026-110789 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running @libp2p/crypto? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record