Skip to main content

node-tar CVE-2026-140229

| EUVDEUVD-2026-140425 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
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
    Submit 65KB zstd archive to service
  2. Exploit
    Service runs tar.t()/tar.x() on input
  3. Execution
    zlib materializes 2GiB before ratio check
  4. Impact
    Memory 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.

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

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

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

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

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

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

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:48 cve.org
HIGH 7.1

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

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
High
extremely popular Node.js tar library, a dependency of npm and countless tools
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