Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted tar to extraction service
-
ExploitDeep GNU 'K' linkpath bypasses maxDepth path cap
-
ExecutionQuadratic getDirs() over ~450k components
-
ImpactExhaust Node heap, uncatchable OOM crash
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption 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 | Requires a POSIX host running node-tar < 8.0.0 that extracts an attacker-controlled archive via the default asynchronous path (tar.x, tar.extract, or new Unpack()). The attacker-supplied archive must contain a deeply-nested linkpath delivered through a GNU 'K' long-linkpath (or PAX linkpath=) meta entry, bounded only by maxMetaEntrySize (1 MB), followed by a hardlink or symlink entry; the entry.path stays short to pass the maxDepth check while the uncapped linkpath reaches getDirs(). LIMITING FACTORS: the vendor vector marks UI:P, meaning a victim or service must actually ingest/extract the archive; the flaw is POSIX-only (reserve() is a no-op on Windows, src/path-reservations.ts:53-55); and it affects the asynchronous reserve() path specifically. No authentication is required (PR:N). The complete fix is updating to 8.0.0, which adds a linkpath depth cap and a 32768-byte path/linkpath length bound. |
| Impact | This is a genuine, patch-worthy availability risk but not a crisis-tier remote code execution issue. The only CVSS vector supplied is CVSS 4.0 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H), scoring 7.1 - network-reachable, low-complexity, unauthenticated, with availability-only impact and a passive user-interaction requirement (a victim or service must ingest the attacker's archive). The impact is high precisely because the crash is uncatchable: the advisory confirms neither try/catch nor process.on('uncaughtException') intercepts the FATAL heap-OOM (exit 134/SIGABRT), so a single ~42 KB archive takes down the whole Node process rather than failing one request. Signals point to real-but-bounded priority: the vendor/reporter decision label is this_week (not act_now/emergency), it is NOT listed in CISA KEV (no confirmed active exploitation), and no EPSS score was provided in the input, so widespread opportunistic exploitation cannot be asserted. A detailed, empirically-reproduced PoC is documented in the GHSA advisory, which materially lowers the barrier to weaponization. Note the scope limit the evidence states explicitly: POSIX-only - reserve()/getDirs() is a no-op on Windows, so Windows hosts are not affected by this async path. Missing data to flag: no EPSS and no KEV entry were supplied, so exploitation probability is unquantified here and should be treated as 'documented PoC, no confirmed in-the-wild use.' |
| Exploit ScenarioDerived | An attacker uploads a ~42 KB crafted tar archive to any service that extracts untrusted archives on the default asynchronous path (CI artifact/cache restore, a package importer, or an upload/import processor) running on a POSIX host. The archive carries a GNU 'K' long-linkpath meta entry (~900 KB body, ~450,000 single-character components) followed by a hardlink entry, which bypasses the maxDepth cap (computed only from entry.path) and drives O(n^2) work in getDirs(). A public PoC is documented and empirically reproduced in the GHSA advisory, though it is not provided as packaged, independently-verified exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Asynchronous tar extraction in node-tar (npm 'tar') versions up to 7.5.22 and all releases before 8.0.0 can freeze the Node.js event loop and then terminate the whole process with an uncatchable heap out-of-memory crash when a POSIX host unpacks an attacker-crafted archive. The archive carries a deeply nested linkpath (delivered through a GNU 'K' long-linkpath or PAX linkpath= meta entry) that is pushed into the internal path-reservation machinery, driving quadratic allocation; the resulting FATAL ERROR is not interceptable by try/catch or process.on('uncaughtException'). Exposure requires the target service to actually ingest and extract the untrusted archive (vendor vector marks UI:P), and the flaw does not affect Windows; the vendor fixed it in 8.0.0 with linkpath depth and length caps, a public proof-of-concept with verified reproduction steps accompanies the GitHub advisory, and no in-the-wild exploitation is confirmed.
RemediationAI
Update to node-tar 8.0.0 (npm tar@8.0.0), which is the vendor-released fix; the release and advisory are at https://github.com/isaacs/node-tar/releases/tag/v8.0.0 and https://github.com/isaacs/node-tar/security/advisories/GHSA-343g-5v7x-x325, and the code change is commit 73b352e0010d6c99794ea7374800816a46d3bdb2. That commit adds a component-count check on entry.linkpath mirroring the existing maxDepth cap, a 32768-byte length bound applied to both path and linkpath, and adjusts the reservation bookkeeping in src/path-reservations.ts; downstream projects must bump their transitive tar dependency since no 7.x backport is documented. Where upgrading is not immediately possible, pre-screen archives before extraction by rejecting any hardlink or symlink whose link target exceeds the maxDepth component count or 32768 bytes, and consider lowering maxMetaEntrySize below its 1 MB default to shrink the maximum attainable linkpath, accepting that this will reject legitimate archives carrying long GNU/PAX metadata. Because the crash is an uncatchable process abort, running extraction in a memory-capped child process or worker isolates the blast radius at the cost of extra IPC and startup overhead; try/catch and uncaughtException handlers will not help.
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
node-tar's asynchronous extraction path (tar.x, tar.extract, new Unpack()) routes Link and SymbolicLink entries into the filesystem-check stage, which calls PathReservations.reserve() with both entry.path and entry.linkpath. reserve() maps every supplied path through getDirs(), which builds ancestor directories by repeatedly joining an accumulating prefix and retaining every intermediate string, so an n-component path costs O(n^2) character work and O(n^2) transient string bytes on the main thread (CWE-400 uncontrolled resource consumption, described in the advisory as CWE-407 algorithmic complexity). The existing maxDepth cap of 1024 introduced by the earlier CVE-2024-28863 fix is computed from entry.path only, and the only sanitizer applied to linkpath rejects '..' components but imposes no depth or length bound; the deep linkpath therefore reaches getDirs() intact while the accompanying entry path stays short. Payload size is bounded only by maxMetaEntrySize (1 MB default), which is ample for roughly 450,000 single-character components, and because the archive can be uncompressed the separate decompression-ratio guard never trips. The bug is POSIX-only: reserve() is a no-op on Windows (src/path-reservations.ts). The CPE string cpe:2.3:a:isaacs:node-tar identifies the affected package.
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
Automated services extract untrusted archives with no user interaction (UI:N); deterministic quadratic algorithm (AC:L); unauthenticated network delivery (PR:N); uncatchable process crash is availability-only (C/I:N, A:H).
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, on POSIX hosts, asynchronous extraction of an attacker-controlled archive with a deeply nested linkpath causes PathReservations.getDirs() to materialize every ancestor prefix. The quadratic allocation can exhaust the Node.js heap and terminate the process. The reserve() path is not used for this purpose on Windows. This issue is fixed in version 8.0.0.
Articles & Coverage 1
Executive ViewAI
CVE-2026-140118 is a high-severity denial-of-service vulnerability in the widely used node-tar library that can crash Node.js applications on POSIX systems when processing maliciously crafted archives. Any service that extracts untrusted tar files is at risk of complete process termination, potentially disrupting critical business operations and user-facing services.
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-140422
NVD
CVE.org
GitHub
Exploit-DB