node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping
CVE-2026-140240
Summary The GHSA-f5x3-32g6-xq36 fix bounded the depth (component count) of entry.path with maxDepth. The path-reservation code still computes every ancestor prefix of each reserved path, and its cost grows with the number of components multiplied by the path length. That bound doesn't apply to linkpath, nor to long components within the depth limit. Reservation state and some caches are also never released for the life of an extraction. Details | # | Issue | Location | Default options | |---|---|---|---| | VULN-002 | linkpath has no depth or length bound and is reserved for every entry type. getDirs cost is quadratic in its length, so an archive of a few hundred bytes compressed aborts the Node process | src/path-reservations.ts:25-38, via src/unpack.ts:729-734 | Yes (async x/Unpack) | | VULN-023 | Within maxDepth, very long components make the same getDirs computation exhaust memory (the depth fix bounds count, not length) | src/path-reservations.ts:25-38, via src/unpack.ts:734 | Yes (async) | | VULN-009 | PathReservations.#reservations entries are never deleted, so ancestor strings for every entry are kept until the Unpack ends | src/path-reservations.ts:64 | Yes (async) | |…
Assessment
- CVSS
- 7.1 (v4.0)
- Severity
- High
- EPSS
- 0% chance of exploitation in the next 30 days
- Known exploited
- Not listed in CISA KEV
- Exploit availability
- Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
- Published
- 2 December 2026
- Last updated
- 2 December 2026
- Weakness
- CWE-401, CWE-407, CWE-770
- Assigner
- security-advisories@github.com
CVSS vectorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
At the source
References
- https://github.com/isaacs/node-tar/security/advisories/GHSA-7c32-79xj-j3jp
- https://nvd.nist.gov/vuln/detail/CVE-2026-140240
- https://github.com/isaacs/node-tar/commit/73b352e0010d6c99794ea7374800816a46d3bdb2
- https://github.com/isaacs/node-tar/commit/de87900752566867b422de0ebfe6592b30fa9786
- https://github.com/isaacs/node-tar/releases/tag/v8.0.2
- https://github.com/advisories/GHSA-7c32-79xj-j3jp
Community proofs of concept
No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.
Submit a proof of concept
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-140240