node-tar: Non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception
Affects tarSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 7.5.24 soon.
Data as of 2 Dec 2026, 02:49 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 4.0 | 7.1 |
|---|
- Patch
- Available – fixed in 7.5.24
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/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 1 Dec 2026.
What to do
Upgrade tar to 7.5.24.
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 7.5.24 that fixes this issue by properly validating that the 'size' field is finite before use. Users should upgrade to version 7.5.24 or later to remediate this vulnerability. No other mitigation or configuration changes are required.
Description
The node-tar library improperly validates the 'size' field in PAX extended headers, allowing a non-finite value (Infinity) to bypass checks. This causes the parser to treat the entry size as infinite, resulting in loss of subsequent archive entries during extraction and an uncaught exception crash during re-packing. An unauthenticated attacker supplying a crafted tar archive can trigger these denial-of-service conditions without user interaction.
References
- github.com/isaacs/node-tar/security/advisories/GHSA-ph3c-p786-j4rp (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-140242 (opens in a new tab)
- github.com/isaacs/node-tar/commit/6b815b7c10be504a01af2369a270add7099542d8 (opens in a new tab)
- github.com/isaacs/node-tar (opens in a new tab)
- github.com/isaacs/node-tar/releases/tag/v7.5.24 (opens in a new tab)