HIGHCVSS v3.1 7.5Vulnerability

CVE-2026-110789

### Summary A remote peer can stall a js-libp2p node's entire event loop for ~4–5 seconds per connection (and transiently allocate ~2 GB) by sending a ~15-byte crafted `publicKey` inside an Identify message. The malformed key reaches the DER decoder before any peer-id/signature check, so the attack is pre-auth and repeatable indefinitely by reconnecting. ### Details `packages/crypto/src/keys/rsa/der.ts` `readLength()` parses DER long-form lengths with no comparison to `buf.byteLength`, and `readInteger()` then loops over the attacker-claimed length: ```ts function readInteger (buf, context) { const length = readLength(buf, context) // attacker-controlled, claims up to 2^64 const end = context.offset + length for (let i = context.offset; i < end; i++) // runs far past buf.byteLength vals.push(buf[i]) // pushes `undefined` past the end } ``` The blob reaches the parser pre-auth: Identify runs on every `connection:open` and calls `publicKeyFromProtobuf(publicKey)` (`packages/protocol-identify/src/identify.ts:85`) before the `connection.remotePeer.equals(id)` check at `identify.ts:88`. The `MAX_RSA_JWK_SIZE` guard in `pkixToRSAPublicKey` only bounds the total blob size, not the inner length field, so a 15-byte payload defeats it; the ECDSA path (`unmarshalECDSAPublicKey`) has no cap at all. The decode runs in a single synchronous tick, so no `AbortSignal` — including Identify's 5 s timeout — can interrupt it. Verified on js-libp2p commit `a04f5e0`, where `@libp2p/crypto` reads `5.1.21`. ### PoC Full PoC attached (`libp2p-crypto-der-eventloop-dos-poc.tar.gz`). Build the js-libp2p monorepo at the affected version (`npm install --ignore-scripts && npm run build`), extract the package inside the monorepo root (sibling of `packages/`), then `cd libp2p-crypto-der-eventloop-dos-poc && node attack.mjs`. Expected: ``` [*] round 1: payload sent=true, victim event-loop stall = 4s, peak RSS ~1980 MB [*] round 2: payload sent=true, victim eve

Properties

Severity
high
Summary
libp2p: ASN.1 DER decoder drives an unbounded synchronous loop on attacker-controlled length fields, stalling the Node event loop pre-auth
Nvd fetched at
2026-11-19T03:31:17.617109+00:00
Epss score
0.0063
Cvss severity
HIGH
Cvss score
7.5
Retrieved at
2026-11-19T03:33:39+00:00
Ghsa published
2026-11-17T21:05:08Z
Source url
https://github.com/advisories/GHSA-rvfr-cqwq-rc4j
Ghsa updated
2026-11-17T21:05:09Z
Ghsa id
GHSA-rvfr-cqwq-rc4j
Last source
FIRST EPSS
Score
7.5
Cvss version
3.1
Cve id
CVE-2026-110789
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
First seen by Signal
2026-11-17T22:56:03+00:00
Name
CVE-2026-110789
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Related Entities (4)

AFFECTS (1)

→[Software]npm/@libp2p/crypto

VULNERABLE_TO (1)

←[Software]npm/@libp2p/crypto

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-110789 (CVSS v3.1 7.5) — Ninja Signal Threat Intelligence | Ninja Signal