isomorphic-git is vulnerable to Denial of Service (DoS)
43
Medium Risk
When applying a packfile delta object, isomorphic-git reads an attacker-controlled targetSize and calls Buffer.alloc on it with no upper bound. A single malicious response to clone or fetch can declare a very large target size and force a multi-gigabyte allocation, exhausting memory and crashing the process on memory-constrained hosts. The subsequent size-mismatch error is swallowed, so the wasted allocation happens before any validation. The fix builds the delta result from the actual delta operations instead of pre-allocating the declared target size.
You are affected if you are using a version that falls within the vulnerable range and you clone or fetch from untrusted or compromised remotes.
isomorphic-git is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 1.38.5.
Upgrade the isomorphic-git library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant