Sceawere

Vulnerability Detail

CVE-2026-73566UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

node-tar Recursive Path Stack Overflow

Vulnerability Metadata

Severity
High
Score / CVSS
7.5
Creation Date
3h ago
Vendor
isaacs
Product
node-tar
Attack Type
CWE-400: Uncontrolled Resource Consumption
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack Complexity
LOW

Narrative and Response

Description

node-tar is a tar archive manipulation library for Node.js. Prior to 7.5.21, node-tar's filesFilter in src/list.ts uses the recursive mapHas helper to walk an archive entry path upward with path.dirname() and no segment cap when tar.t(...) or tar.x(...) receives a non-empty member-selection list. A crafted GNU L or PAX x long-path header with thousands of slash-separated segments reaches this.filter(entry.path, entry) in Parser[CONSUMEHEADER] in src/parse.ts before Unpack[CHECKPATH] applies maxDepth, causing an uncatchable RangeError stack overflow that terminates asynchronous and streaming Node.js consumers. This issue is fixed in version 7.5.21.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "7.5",
  "pubDate": "2026-08-13T18:18:19.250Z",
  "pubdate": "2026-08-13T18:18:19.250Z",
  "executiveSummary": "An uncatchable RangeError stack overflow vulnerability exists in node-tar prior to version 7.5.21.\nThe flaw allows an attacker to cause a denial of service (DoS) by terminating asynchronous and streaming Node.js consumer applications.\nThe vulnerability is triggered when tar.t(...) or tar.x(...) processes a crafted archive containing a long-path header with thousands of slash-separated segments.\nThis occurs because the filesFilter implementation recursively walks the archive entry path upward using path.dirname() without a segment cap before depth checks are applied.\nAttackers can exploit this by supplying a crafted GNU L or PAX x long-path header within a malicious tar archive.\nNo authentication or specific privileges are required, provided the application processes untrusted tar archives.",
  "technicalDetails": "The root cause of the vulnerability resides in src/list.ts within the filesFilter function, which utilizes the recursive mapHas helper to walk archive entry paths upward via path.dirname().\nWhen tar.t(...) or tar.x(...) receives a non-empty member-selection list, this path-walking mechanism operates without any segment cap or depth limitation.\nExploitation occurs during the parsing phase in Parser[CONSUMEHEADER] located in src/parse.ts.\nA crafted GNU L or PAX x long-path header containing thousands of slash-separated segments forces filesFilter to process the path via this.filter(entry.path, entry).\nThis excessive recursion happens before Unpack[CHECKPATH] can apply the maxDepth constraint.\nThe consequence of this unchecked recursive traversal is an uncatchable RangeError stack overflow that immediately crashes and terminates the Node.js process hosting the asynchronous or streaming consumer.\nThe affected component is the path-filtering and header-parsing mechanism in node-tar versions prior to 7.5.21."
}
CVE-2026-73566: node-tar Recursive Path Stack Overflow (HIGH Severity, CVSS: 7.5) - Sceawere