node-tar: Decompression within the ratio limit is buffered in memory without backpressure, and zero-size entries queue without bound
CVE-2026-140231
Summary The GHSA-23hp-3jrh-7fp fix (7.5.19, commit 2812e93) aborts when the total decompressed size exceeds maxDecompressionRatio times the compressed size. That limits total work, not how much is held in memory at once. When reading from a file, each read chunk is inflated synchronously and its output is buffered in a paused ReadEntry, so memory use isn't bounded while staying under the ratio. In the same write, zero-size entries are queued without any limit. Details | # | Location | Default options | |---|---|---| | VULN-008 | src/parse.ts:576-577, 551-555, 343 → src/read-entry.ts:131 | Yes (x({file}), t({file})) | | VULN-011 | src/parse.ts:268-273 (same root cause) | Yes | Proof of concept exploittests/testvuln008 and 011 measure memory for a control archive and an attack archive against the unmodified 7.5.22 build. Output is in exploittests/evidence/. The tests were run on macOS. Impact A service that extracts or lists untrusted compressed archives can be made to use much more memory than the archive size suggests, without hitting the ratio limit. Suggested fix Queue compressed input and inflate in small slices only while consumers aren't paused, and stop accepting zero-size…
Assessment
- CVSS
- 7.1 (v4.0)
- Severity
- High
- EPSS
- 0.00647% 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-409, CWE-770
- Assigner
- GitHub_M
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-9hmx-4f52-v64x
- https://nvd.nist.gov/vuln/detail/CVE-2026-140231
- https://github.com/isaacs/node-tar/commit/da66090c7a44b2140bd4a6343c478a8e411e1aa7
- https://github.com/isaacs/node-tar/releases/tag/v8.0.0
- https://github.com/advisories/GHSA-9hmx-4f52-v64x
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-140231