CVE Feed
7.1 High

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
Affected
isaacs · node-tar · tar
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

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
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-140240