CVE-2026-63476
isomorphic-git allows unbounded memory allocation from attacker-controlled delta target size (DoS)
Also known as GHSA-9x82-4j54-863h
Mitigation
- Upgrade isomorphic-git to 1.38.6 or later.
Who should check
- Projects that depend on npm package isomorphic-git (< 1.38.6)
Vulnerability facts
- Affected
- isomorphic-git < 1.38.6
- Fixed in
- 1.38.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.3 (v3.1, GitHub)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.40% chance of exploitation in 30 days (percentile 25, 2026-11-26)
- CWE
- CWE-400, CWE-789
- Modified
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).
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm isomorphic-git | < 1.38.6 | 1.38.6 | ghsa |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-63476. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-63476.md Affected: isomorphic-git < 1.38.6 Fixed in: 1.38.6 Steps: 1. Search this machine and project for isomorphic-git (npm): dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Vendor advisories
Patches
- https://github.com/isomorphic-git/isomorphic-git/pull/2370
- https://github.com/isomorphic-git/isomorphic-git/pull/2373
- https://github.com/isomorphic-git/isomorphic-git/commit/5c37ea69e9691183fc52d41ba7b6361263e9fedd
- https://github.com/isomorphic-git/isomorphic-git/commit/823843d1cd19182df79bc907c767f5bcecb39a0b
FAQ
Is CVE-2026-63476 being exploited?
There is no confirmed exploitation: CVE-2026-63476 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-63476?
Medium: CVSS 4.3 (v3.1, scored by GitHub). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-63476?
isomorphic-git < 1.38.6.
Is there a fix for CVE-2026-63476?
Yes. Fixed in 1.38.6. Upgrade isomorphic-git to 1.38.6 or later.
How do I check if I'm affected by CVE-2026-63476?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.