Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit 65KB zstd archive to service
-
ExploitService runs tar.t()/tar.x() on input
-
Executionzlib materializes 2GiB before ratio check
-
ImpactMemory exhausted, process OOM-killed (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires only that the target service pass an attacker-supplied archive to node-tar's tar.t() or tar.x() on a vulnerable version (<= 7.5.22, before 8.0.0). No authentication, no ratio override, and no zstd opt-in are needed: zstd is auto-sniffed from 4-byte magic bytes whenever this.zstd !== false (the default), and the maxDecompressionRatio guard is evaluated only after node zlib has already materialized the inflated chunk, so it cannot prevent the allocation. The attacker fully controls the allocation size via the entry header (e.g. a declared 2 GiB entry from 65,608 compressed bytes). Limiting factors: the deployment must actually accept and parse attacker-controlled archives through tar's parse/extract path; under a configured memory limit this is an immediate OOM kill, while without one it causes host-wide memory pressure; zstd triggering requires a Node.js build that supports zstd decompression (brotli and crafted post-EOF buffering are alternative paths). |
| Impact | This is an availability-only denial-of-service flaw (CWE-770, unbounded memory allocation), and the signals are mostly consistent in pointing to a real-but-bounded priority rather than an emergency. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VA:H, VC:N/VI:N) and score of 7.1 describe network-reachable, low-complexity, no-privilege exploitation whose only impact is availability - there is no confidentiality or integrity exposure and no code execution. The GHSA advisory includes a complete, demonstrated PoC (OOM kill reproduced in a 512 MB container), so publicly available exploit code exists; SSVC records Exploitation=poc, which agrees. However SSVC also records Automatable=no and Technical Impact=partial, and the vuln.today Decision label is this_week (not act_now/emergency) - so despite the trivially small 65,608-byte trigger and default-configuration applicability, the framework treats this as a prompt-but-not-crisis patch item. KEV status is NO (not confirmed actively exploited) and no EPSS score was supplied, so exploitation-in-the-wild probability cannot be quantified from this data. One signal to flag: the vendor used UI:P (passive user interaction), yet the advisory describes fully automated server-side archive processing (registries, CI runners, artifact/backup services) that requires no human action, which would argue for UI:N and a slightly higher exploitability - verify intended deployment flow. Net: a genuine, easy-to-trigger DoS worth patching this week, but not an RCE-class or KEV-class emergency. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker submits a crafted 65,608-byte zstd-compressed tar archive whose entry header declares a 2 GiB size to any service that feeds supplied archives to tar.t()/tar.x() (package registries, CI runners, artifact or backup services). node-tar auto-detects zstd by its magic bytes with no caller opt-in and synchronously inflates the entire chunk before maxDecompressionRatio is evaluated, so the ~32,700:1 expansion exhausts memory and OOM-kills the process at stock settings. A full working PoC with reproduced OOM output is published in the GHSA-9239-v992-p74f advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Memory exhaustion in node-tar (the npm 'tar' package) at versions up to and including 7.5.22 lets a remote, unauthenticated party OOM-kill any service that hands an attacker-supplied archive to tar.t() or tar.x(): the maxDecompressionRatio guard is evaluated only after node zlib has already materialized the inflated chunk, so a 65,608-byte zstd archive declaring a 2 GiB entry exhausts memory at stock settings. zstd is auto-sniffed from 4-byte magic bytes with no caller opt-in, and brotli expansion or post-EOF buffering provide alternate paths that do not require zstd support in the Node.js build. A working proof-of-concept is published in the upstream GHSA advisory (the PoC drives a node:22 container to exit 137 with OOMKilled true); there is no CISA KEV listing and the current vuln.today priority label is this_week, reflecting a real but bounded availability-only risk rather than an emergency.
RemediationAI
Vendor-released patch: upgrade to node-tar 8.0.0, which discards buffered input after the end-of-archive marker and aborts cleanly when a decompressor cannot be constructed. Because 8.0.0 is a major release, review the changelog for breaking API and option changes before bumping; the relevant upstream commits are 73b352e0010d6c99794ea7374800816a46d3bdb2 and da66090c7a44b2140bd4a6343c478a8e411e1aa7, and the advisory is at https://github.com/isaacs/node-tar/security/advisories/GHSA-9239-v992-p74f. If the upgrade cannot be completed immediately, run every archive-parsing process inside a hard memory limit (container memory plus memory-swap equal to the same value) so the exhaustion becomes a contained OOM kill rather than host-wide memory pressure, and cap the size of archives accepted from untrusted producers before they reach tar - both controls reduce blast radius but do not bound the single-chunk allocation, so they are stopgaps only. Setting zstd: false removes the auto-sniffed zstd trigger path, but the advisory states brotli expansion and crafted post-EOF buffering are alternative paths on the same code, so disabling zstd alone does not close the issue.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-770 (allocation of resources without limits), realized in node-tar's decompression pipeline. The ratio check runs from the decompressor's 'data' event, which node zlib fires once per synchronous _processChunk call, so by the time the guard sees the chunk its entire inflated output is already resident and the guard merely observes an allocation instead of bounding it. Compressed bytes are credited per write(), making the guard's effective resolution the caller's write size rather than the codec's output ratio: a single large write front-loads the inputSize x 1000 budget before the ratio is evaluated even once, and tar's own file-reading helpers write up to 16 MB at a time. The decompressors are constructed without maxOutputLength, so nothing else caps the chunk. The single ratio constant of 1000 was calibrated to DEFLATE's roughly 1032:1 ceiling, while zstd reaches roughly 32,700:1 and brotli roughly 1,230,000:1, meaning those codecs complete their expansion inside one chunk regardless of write size; zstd requires no opt-in because it is auto-detected by magic bytes whenever this.zstd !== false (the default). A third path needs no decompression at all: both parse loops stop at the tar EOF marker but the buffer concatenation does not, so once SAW_EOF is set every subsequent write() is appended with nothing draining it, and write()'s return value never reflects SAW_EOF so a piping producer receives no back-pressure signal. The 8.0.0 fix drops buffered data once SAW_EOF is set and wraps decompressor construction in a try/catch that aborts the parse, alongside unrelated hardening in the same release (path length and linkpath depth caps, path-reservation exclusivity, and an UnpackSync UNPEND no-op). Affected identifiers are cpe:2.3:a:isaacs:node-tar (all versions before 8.0.0).
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Remote, unauthenticated, default-config and low-complexity (AV:N/AC:L/PR:N); automated server-side archive parsing needs no human action (UI:N); impact is availability-only resource exhaustion (A:H, C:N/I:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, when node-tar processes compressed attacker-controlled input, node zlib can materialize the inflated output before maxDecompressionRatio is evaluated. The guard therefore observes an allocation after it occurred rather than bounding it, allowing memory exhaustion despite the configured ratio limit. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Executive ViewAI
CVE-2026-140229 poses a high-severity availability risk to any service that processes attacker-supplied archives using node-tar versions up to 7.5.22. A remote, unauthenticated attacker can crash these services via memory exhaustion, leading to service outages and potential data loss from abrupt terminations, impacting customer-facing operations and requiring engineering effort to triage and restore.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-140425
NVD
CVE.org
Vulnrichment
GitHub
Exploit-DB