
Loading

Loading
We use strictly necessary cookies to run this site, and analytics cookies to understand how it's used. See our Privacy Policy for details.
A GitHub-reviewed security advisory, not necessarily under active exploitation the way our CISA KEV advisories are, but a real, disclosed vulnerability in an open-source dependency.
Affected packages
Vulnerable: < 1.38.6
Patched in 1.38.6
Details
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:
const sourceSize = readVarIntLE(reader)
const targetSize = readVarIntLE(reader) // attacker-controlled
…
target = Buffer.alloc(targetSize)
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).
https://github.com/spiceoverflow/av4-oom — open in a Codespace; a single clone/fetch against the bundled server, run under --max-old-space-size=256:
[AV-4] *** OOM ALLOCATION CONFIRMED — Buffer.alloc(targetSize) RAN ***
[AV-4] External (Buffer) memory rose by 2048 MB during clone.
(The allocation is off-heap, so a Node heap cap does not mitigate it.)
A denial of service via unbounded memory allocation: a single response from a malicious or MitM'd server to git.clone()/git.fetch() forces a multi-gigabyte allocation, crashing the process on memory-constrained hosts.
Any application or service that clones or fetches from untrusted/compromised remotes with isomorphic-git — most acutely containers, serverless functions, and small VMs, where the OS OOM-kills the process.
Don't pre-allocate the untrusted targetSize: build the result from the actual delta ops and validate the total against targetSize before concatenating (and/or cap it against the advertised pack size).
EPSS, exploit probability
Low0.40%
estimated chance of real-world exploitation in the next 30 days, higher than 34.8% of every CVE FIRST.org scores
Refreshed 11/24/2026, via FIRST.org's EPSS model, not CVSS, this measures likelihood of exploitation, not how severe it would be.
More npm advisories
Talk to us about this
Find out whether this dependency (or others like it) is actually reachable in your codebase.
Get help patching, or building dependency-scanning into your pipeline going forward.
A secure code review or supply chain review finds this before an advisory does.