node-tar PathReservations.getDirs() quadratic memory amplification via unbounded symlink linkpath depth — uncatchable
Affects tarSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 8.0.0 soon.
Data as of 2 Dec 2026, 19:48 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.1 |
|---|
- Patch
- Available – fixed in 8.0.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 1 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade tar to 8.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmtar | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in node-tar version 8.0.0 that extends the maxDepth validation to cover entry.linkpath and prevents excessive segment counts before path processing. Users should upgrade to version 8.0.0 or later to mitigate this vulnerability. Until upgraded, avoid extracting untrusted tar archives or implement additional filtering to reject archives with suspiciously deep symlink paths.
Description
A vulnerability in node-tar versions prior to 8.0.0 allows an attacker to craft a tar archive with a deeply nested symlink linkpath that triggers quadratic memory allocation during extraction. This leads to an uncatchable out-of-memory (OOM) crash of the Node.js process, causing a fatal error and process abort. The flaw arises because the existing maxDepth check applies only to entry.path, not to entry.linkpath, allowing a shallow entry.path with a deeply nested linkpath to bypass protections. A small compressed archive (as little as 181 bytes) can cause immediate heap exhaustion.
References
- github.com/isaacs/node-tar/security/advisories/GHSA-xm6h-2993-3ch9 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140230 (opens in a new tab)
- github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2 (opens in a new tab)
- github.com/isaacs/node-tar (opens in a new tab)
- github.com/isaacs/node-tar/releases/tag/v8.0.0 (opens in a new tab)