Skip to main content

node-tar CVE-2026-140119

| EUVDEUVD-2026-140424 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 with deep symlink linkpath
  2. Delivery
    Victim service extracts via default async Unpack on POSIX
  3. Exploit
    linkpath bypasses maxDepth guard (applied to path only)
  4. Execution
    reserve() feeds linkpath into quadratic getDirs
  5. Persist
    O(N^2) blowup exhausts V8 heap
  6. Impact
    Node process aborts, uncatchable OOM denial of service

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

Exploitation requires the target application to extract an attacker-controlled tar archive using node-tar's DEFAULT asynchronous API (tar.extract({file}) or the Unpack stream) on a non-Windows/POSIX host; the malicious entry must be a symlink or hardlink whose linkpath is a deep relative path (e.g. a/a/.../a via a PAX extended record, ~12,000 segments in a 26 KB archive), which bypasses the maxDepth guard because that guard is enforced only on entry.path, never on entry.linkpath. No authentication, privileges, or active user action beyond the service ingesting the archive are needed (PR:N; UI:P reflects that a victim service must process the file). Key limiting factors that reduce realistic exposure: synchronous extraction (sync:true) is NOT affected because it does not use path reservations, and the Windows reservation path is NOT affected (short-circuited to a constant list); the application must also actually extract untrusted/third-party archives. Versions prior to 8.0.0 are affected; 8.0.0 fixes it.

Impact

This is a pure availability / denial-of-service flaw (CWE-400, with CWE-407 algorithmic-complexity per the GHSA advisory): an attacker-controlled tar archive with a deeply nested symlink linkpath reaches the quadratic PathReservations.getDirs() path and exhausts the Node.js V8 heap, aborting the process with an uncatchable OOM. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VA:H, base 7.1) and SSVC (Exploitation: poc, Automatable: no, Technical Impact: partial) are mutually consistent: network vector, no authentication or privileges, low complexity, but requiring that a victim service actually feed an attacker-supplied archive into the default asynchronous extractor - hence UI:P and Automatable: no rather than a self-propagating worm. There is no CISA KEV listing and no EPSS score supplied, so there is no signal of active or widespread exploitation; however a detailed, deterministic proof-of-concept with reproduction steps is published in the GHSA advisory (26 KB archive kills a ~2 GB heap, exit 134), so this is more than a theoretical high-CVSS issue. Net: a genuine, cheap, reliable DoS primitive against any Node.js service that extracts untrusted archives via node-tar's async API on POSIX, but with zero confidentiality or integrity impact and a real deployment precondition - the vuln.today 'this_week' priority (not act_now/emergency) is appropriate. Note one data tension to verify: the GHSA research-snapshot text asserts 'Fix status: not fixed, <= 7.5.22', while the release tag v8.0.0, the fix commit, the EUVD range (< 8.0.0), and the CVE description all confirm the fix shipped in 8.0.0 - the 'not fixed' line reflects the pre-release research state, and 8.0.0 is the confirmed remediated version.

Exploit ScenarioDerived

A service that accepts user-uploaded tar archives (for example a CI/CD artifact handler, package installer, or backup/restore endpoint on Linux) extracts them with node-tar's default asynchronous tar.extract/Unpack API. An unauthenticated attacker uploads a ~26 KB archive whose single member is a symlink with a deep relative linkpath of the form a/a/.../a (about 12,000 segments via a PAX extended record); extraction drives getDirs into O(N^2) time and memory and the Node process dies with a fatal, uncatchable out-of-memory abort that no surrounding try/catch can intercept. A working proof-of-concept and reproduction steps are published in the GHSA advisory.

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

A crafted tar archive can terminate a Node.js process that extracts it with node-tar's default asynchronous API: on non-Windows hosts, a symlink or hardlink entry carrying a deeply nested relative linkpath reaches the quadratic PathReservations.getDirs() helper, exhausting the V8 heap and aborting the process with an uncatchable fatal out-of-memory error (exit 134). All versions prior to 8.0.0 are affected per the GHSA advisory (confirmed through 7.5.22); synchronous extraction and the Windows reservation path are unaffected, so only services that asynchronously unpack untrusted archives on POSIX hosts are exposed. A functional public proof of concept exists (a ~26 KB archive with about 12,000 linkpath segments kills a default ~2 GB heap), but there is no confirmed active exploitation in the wild; the vendor shipped version 8.0.0 as the fix.

RemediationAI

Vendor-released patch: upgrade to node-tar 8.0.0, which bounds entry.linkpath depth against maxDepth, caps path and linkpath at 32768 characters, and hardens PathReservations.reserve (release notes at https://github.com/isaacs/node-tar/releases/tag/v8.0.0, advisory at https://github.com/isaacs/node-tar/security/advisories/GHSA-5qxq-cgm8-6j7r). Applications that cannot upgrade immediately should extract untrusted archives with the synchronous API (sync: true), which does not use path reservations and was confirmed to return normally, accepting the trade-off that synchronous I/O blocks the event loop; alternatively, they can avoid extracting untrusted archives on POSIX hosts via the async API, or pre-screen archives and reject symlink/hardlink entries whose linkpath has an excessive number of segments, though such filtering must be implemented by the calling application since the pre-8.0.0 library performs no such check. Wrapping await tar.extract(...) in try/catch is not a mitigation, because the heap-exhaustion abort is uncatchable and terminates the process.

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 extractor (tar.extract({file}) and the Unpack stream) serializes overlapping filesystem operations through a PathReservations system. For symlink and hardlink entries, the filesystem check reserves both the entry path and its link target, and reserve() expands each reserved path into its full ancestor chain via getDirs in src/path-reservations.ts - a reduce over split('/') that rebuilds a growing prefix with join() once per segment, costing O(N^2) time and retaining O(N^2) memory. The root cause class is CWE-400 (uncontrolled resource consumption), with CWE-407 algorithmic complexity called out in the GHSA: the maxDepth guard (default 1024) introduced by the earlier folders-depth DoS fix is applied only to entry.path, while entry.linkpath passes only the absolute-path stripper, which rejects '..' and cwd escapes but never measures depth. A deep but relative linkpath of the form a/a/.../a therefore reaches getDirs unbounded; because the blowup runs synchronously inside the parser write path, a V8 heap-exhaustion abort is not a catchable JavaScript exception. On Windows the reservation path is short-circuited to a constant list, and the synchronous extractor does not use path reservations at all, which is why neither is affected by this vector. The 8.0.0 commit adds a linkpath depth check against maxDepth, a 32768-character MAX_PATH_LENGTH bound on both path and linkpath, de-duplication and exclusivity adjustments in PathReservations.reserve, plus parser hardening and a new resource-limits test suite.

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 6.5 MEDIUM

Attacker-supplied archive must be extracted by a victim service (UI:R) with no auth and deterministic trigger (PR:N/AC:L); impact is a process crash only, so C:N/I:N/A:H and no scope change.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/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:44 cve.org
HIGH 7.1

DescriptionCVE.org

node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, asynchronous Unpack extraction of an attacker-controlled archive with a deeply nested linkpath reaches the quadratic PathReservations.getDirs() path. This can exhaust the Node.js heap and terminate the process. Synchronous extraction and the Windows reservation path are not affected by this vector. This issue is fixed in version 8.0.0.

Executive ViewAI

Why It Matters

A high-severity denial-of-service vulnerability in node-tar affects Node.js services that asynchronously extract untrusted tar archives on Linux/Unix systems. An attacker can crash the entire service by uploading a small malicious archive, causing immediate unavailability and potential disruption to business operations. Leadership should prioritize remediation because the flaw is easily exploitable with publicly available proof-of-concept code and can take down critical services without authentication.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
Ubiquitous
npm 'tar' is a core bundled npm dependency across the Node.js ecosystem
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

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