Skip to main content

node-tar CVE-2026-140118

| EUVDEUVD-2026-140422 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-12-01 GitHub_M
7.1
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted tar to extraction service
  2. Exploit
    Deep GNU 'K' linkpath bypasses maxDepth path cap
  3. Execution
    Quadratic getDirs() over ~450k components
  4. Impact
    Exhaust 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

node-tar < 8.0.0

Affected Packages

euvd node_tar fix: 8.0.0

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

Vendor (GitHub_M) PRIMARY 7.1 HIGH
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
vuln.today AI 7.5 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 18:03 EUVD
CVE Published
Dec 01, 2026 - 16:42 cve.org
HIGH 7.1

DescriptionCVE.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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
node-tar is a near-universal Node.js dependency, bundled with and used by npm
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2024-35286 CRITICAL POC
9.8 Oct 21

A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy