CVE-2024-28863 — Vulnerability in tar — CVE Details
Denial of service while parsing a tar file due to lack of folders count validation
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.08%). Schedule for your next planned update.
Does your project use an affected tar version?
Paste your package-lock.json to check it for CVE-2024-28863 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Description:
During some analysis today on npm's node-tar package I came across the folder creation process, Basicly if you provide node-tar with a path like this ./a/b/c/foo.txt it would create every folder and sub-folder here a, b and c until it reaches the last folder to create foo.txt, In-this case I noticed that there's no validation at all on the amount of folders being created, that said we're actually able to CPU and memory consume the system running node-tar and even crash the nodejs client within few seconds of running it using a path with too many sub-folders inside
Steps To Reproduce:
You can reproduce this issue by downloading the tar file I provided in the resources and using node-tar to extract it, you should get the same behavior as the video
Proof Of Concept:
Here's a video show-casing the exploit:
Impact
Denial of service by crashing the nodejs client when attempting to parse a tar archive, make it run out of heap memory and consuming server CPU and memory resources
Report resources
Note
This report was originally reported to GitHub bug bounty program, they asked me to report it to you a month ago
Advisory Timeline
- First published March 22, 2024 (979 days ago).
- Last revised September 10, 2026 — 901 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
npm install tar@6.2.1
npm install node-tar@6.2.1
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: npm (2).
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-400Uncontrolled Resource ConsumptionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
References
- https://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-28863ADVISORY
- https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7WEB
- https://github.com/isaacs/node-tarPACKAGE
- https://security.netapp.com/advisory/ntap-20240524-0005WEB
Frequently Asked Questions
- What is CVE-2024-28863?
- Denial of service while parsing a tar file due to lack of folders count validation. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.5/10).
- How do I check if my project is affected by CVE-2024-28863?
- CVE-2024-28863 affects tar and node-tar. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-28863 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is an above-median EPSS score — 64.4% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-59873CRITICAL
node-tar: Decompression/parse DoS via unlimited input
- CVE-2026-24842HIGH
node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
- CVE-2021-32804HIGH
Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization
- CVE-2021-37713HIGH
Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization
- CVE-2026-26960HIGH
Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction
- CVE-2026-23745HIGH
node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization
- CVE-2026-59874HIGH
node-tar: Negative tar entry size causes infinite loop in archive replace
- CVE-2026-31802HIGH
node-tar Symlink Path Traversal via Drive-Relative Linkpath