Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted tar archive to consumer
-
DeliveryPAX record sets size=Infinity
-
ExploitMissing finiteness check passes >=0 guard
-
ExecutionInfinity propagates to parser state/numeric encoder
-
ImpactSilent entry loss or uncaught crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
|
| Exploitation Conditions | The target must be a process that parses, extracts, lists, or re-packs an attacker-supplied tar archive using node-tar 7.0.0 through 7.5.23; no authentication, no non-default configuration, and no special privileges are required (default behavior is vulnerable). The specific trigger is a PAX extended header (typeflag x) carrying a non-finite numeric size such as '17 size=Infinity\n', which bypasses the >=0 guard. Limiting factors by impact: the worst outcome (uncaught process crash) requires the archive's entries to be piped back through the packer - e.g. the supported tar.replace()/tar.update() @archive merge path - so services that only extract/list are not crashed; plain extraction or listing instead causes silent loss of all entries after the crafted one, and strict mode surfaces the TAR_BAD_ARCHIVE warning as an error but does not prevent the re-packing crash. |
| Impact | This is a genuine but bounded availability issue, not a top-tier emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P) and the GHSA advisory agree that an unauthenticated remote attacker who can get an archive parsed needs no special privileges, so attacker-side barriers are low. However, the only demonstrated impacts are denial of service: VC:N and VI:L/VA:H map to silent entry loss (limited integrity) and an uncaught process crash (availability). There is no code execution or data disclosure. SSVC reinforces a measured response: Exploitation=poc (a PoC exists but no in-the-wild use), Automatable=no, Technical Impact=partial, which aligns with the vendor priority label of this_week rather than act_now. The vulnerability is NOT in CISA KEV, and no EPSS score was supplied in the input, so widespread opportunistic exploitation is not evidenced. One cross-source note: the input Tags label this an 'Authentication Bypass', which is inconsistent with CWE-1284 (improper validation of a specified quantity) and the advisory text - this is an input-validation/DoS flaw, not an authentication bypass, and the tag should not drive prioritization. Net: prioritize because of ubiquitous deployment and trivial attacker requirements, but scope the response to availability/integrity of archive-processing services, not RCE. |
| Exploit ScenarioDerived | An attacker uploads or otherwise supplies a single crafted tar archive to any Node.js service that extracts, lists, or re-packs it with node-tar; the archive contains a PAX record '17 size=Infinity\n'. During extraction the Infinity size makes the parser consume all following entries as one body, silently dropping them; if the service re-packs the entries (e.g. via tar.replace()/tar.update() @archive merge), the numeric encoder throws an uncaught synchronous exception and crashes the host process. A working PoC is included in the GHSA advisory and was reproduced against the published release, and the attack needs no authentication and no user interaction beyond the service processing the file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 02, 2026
Denial of service in node-tar 7.0.0 through 7.5.23 lets an unauthenticated attacker who supplies a crafted tar archive to any process that parses, extracts, lists, or re-packs it silently discard entries or crash the host process. A PAX extended header record such as '17 size=Infinity\n' is coerced to the JavaScript number Infinity and accepted because the only guard on the value is a >= 0 check; during plain extraction or listing every entry after the crafted one is consumed as body data, and when entries are piped back through the packer (for example the supported tar.replace()/tar.update() @archive merge path) the numeric header encoder throws an uncaught exception. The vendor advisory publishes a proof-of-concept that reports both impacts reproduced against the current release; there is no evidence of active exploitation, SSVC rates exploitation as poc only and CISA's decision framework marks the change non-automatable with partial technical impact. Fixed in 7.5.24.
RemediationAI
Vendor-released patch: upgrade node-tar to 7.5.24 (https://github.com/isaacs/node-tar/releases/tag/v7.5.24), which adds a digit-only SIMPLE_NUMBER regex and a Number.isSafeInteger() check on PAX size values in src/pax.ts, as shown in commit 6b815b7c10be504a01af2369a270add7099542d8. Where upgrading is not immediately possible, the vendor states no configuration-only mitigation fully removes exposure: services should avoid re-packing untrusted archives through tar.replace()/tar.update() @archive merge paths, since that is the only path leading to the uncaught packer exception - the trade-off is loss of in-place merge functionality, while extract-only and list-only workloads are limited to silent entry loss rather than a crash. Running the parser in strict mode turns the TAR_BAD_ARCHIVE warning into a surfaced error, but this does not prevent the re-packing crash and does not restore entries already swallowed as body data. Archives from untrusted sources should be treated as hostile input to the library until the patched version is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
tar archives carry metadata in 512-byte headers, and PAX extended headers (typeflag 'x') carry key/value text records that override the following entry's fields. In node-tar's src/pax.ts parseKVLine, the 'size' case computed const s = +v and stored it whenever if (s >= 0) held; because +"Infinity" === Infinity and Infinity >= 0 is true, non-finite and unsafe values passed the check that was written only to reject negative sizes. The secondary guard notNegative() in src/header.ts had the same gap, since Infinity < 0 is false. The value then flowed into the read-entry state machine as remain/startBlockSize/blockRemain, where the exit condition !entry.blockRemain evaluates to false for Infinity and the parser never returns to the header state, silently swallowing all subsequent entries; the same value reached the numeric header encoder during re-packing, where Number.isSafeInteger(Infinity) fails and the encoder throws synchronously with no surrounding catch. This is CWE-1284 (Improper Validation of Specified Quantity in Input) - a missing finiteness/safe-integer bound on a quantity taken from untrusted input. The fix commit 6b815b7c adds a SIMPLE_NUMBER digit-only regex plus a Number.isSafeInteger() check in parseKVLine, with regression tests covering 'Infinity', '1e400', a 400-digit integer, '9007199254740993', 'NaN' and '1.5'.
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:L/VA:H/SC:N/SI:N/SA:N
Remote attacker-supplied archive is parsed automatically with no privileges (AV:N/AC:L/PR:N/UI:N); silent entry loss gives limited integrity (I:L) and the uncaught crash gives high availability impact (A:H), with no confidentiality effect.
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. From 7.0.0 until 7.5.24, tar: non-finite PAX size (Infinity) bypasses validation, causing extraction entry loss and an uncaught exception when re-packing. The affected security path includes tar, size, 17 size=Infinity\n. This issue is fixed in version 7.5.24.
Blast Radius
ecosystem impact- 9 npm packages depend on tar (7 direct, 2 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Articles & Coverage 1
Executive ViewAI
CVE-2026-140242 is a high-severity denial-of-service vulnerability in node-tar, a widely used library for handling tar archives in Node.js applications. An unauthenticated attacker can supply a crafted archive to cause data loss or crash the host process, disrupting services that process user-uploaded archives. Leadership should prioritize patching because exploitation requires no credentials and can lead to operational outages.
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-140448
GHSA-ph3c-p786-j4rp
NVD
CVE.org
Vulnrichment
Exploit-DB