MEDIUM · CVSS 3.1 4.3 EPSS 0.4% · 35th percentile CWE-400CWE-789

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

Published 2026-11-23 · Updated 2026-11-23 · Also known as GHSA-9x82-4j54-863h

Summary

An unbounded memory allocation vulnerability in isomorphic-git allows malicious servers to cause a denial of service via memory exhaustion. Engineering and security teams using isomorphic-git for client operations against untrusted repositories should update immediately.

Who is affected

Affected deployments include any application or service using isomorphic-git to run `git.clone()` or `git.fetch()` against untrusted or compromised remotes. When a client processes a malicious packfile with a large server-controlled targetSize, it forces a multi-gigabyte off-heap allocation that crashes the process on memory-constrained hosts such as containers, serverless functions, and small VMs.

Exploitability

The vulnerability has a CVSS base score of 4.3 with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L, indicating network accessibility, low attack complexity, no privileges required, user interaction, and low availability impact. The EPSS score is 0.004 (percentile 0.348), and it is not listed in the CISA Known Exploited Vulnerabilities catalog.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-23. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm isomorphic-git >= 0, < 1.38.6 1.38.6 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeUnchanged
ConfidentialityNone
IntegrityNone
AvailabilityLow

FAQ

What causes the denial of service?

isomorphic-git reads an untrusted targetSize from a delta object header inside a packfile and calls Buffer.alloc(targetSize) without an upper bound, forcing a massive memory allocation.

Does increasing the Node heap size mitigate the issue?

No, because the memory allocation is performed off-heap via Buffer.alloc, meaning Node heap caps do not prevent the OOM condition.

Is active exploitation currently tracked by CISA KEV?

No, the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.

Original advisory description
### Summary 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). ### Details `src/utils/applyDelta.js`: ```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 `SIGKILL`s the process. #### Canonical git behavior (divergence) 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). ### PoC `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.) ### Impact 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. ### Suggested fix 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).

References

Source records: GHSA-9x82-4j54-863h (OSV.dev) · EPSS by FIRST, 2026-11-23.