All vulnerabilities

npm

CVE-2026-63476

isomorphic-git allows unbounded memory allocation from attacker-controlled delta target size (DoS)

Severity
Medium 4.3
Published
23 Nov 2026
Last changed
23 Nov 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.38.6
Exploit chance
0.4% in the next 30 daysHigher than 34% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)CWE-789
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Slow it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Also known as
GHSA-9x82-4j54-863h
Sources
OSV.dev and GitHub

Description

When applying a delta object from a packfile, isomorphic-git reads a server-controlled targetSize and calls Buffer.alloc(targetSize) with no upper bound. A single malicious HTTP response to git.clone()/git.fetch() can force a ~2 GB allocation → memory exhaustion / DoS (process killed on memory-constrained hosts).

src/utils/applyDelta.js:

A pack with one OBJ_REF_DELTA whose header declares targetSize = 0x7FFFFFFF (~2 GB) and a 1-byte op causes the full allocation up front. The subsequent size-mismatch error is swallowed in GitPackIndex.fromPack, so on a host with spare RAM it silently wastes ~2 GB; on a small host the OS SIGKILLs the process.

git rejects the same 78-byte pack in ~96 ms — error: delta replay has gone wild / fatal: … failed to apply delta — with no large allocation and no hang (it bounds delta replay against the declared size rather than trusting it).

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
isomorphic-gitnpm · osv:npm:isomorphic-git
  • Every version before 1.38.6

About isomorphic-git

Weekly downloads (npm)
3,355,175npm, 24 Nov 2026

References