Skip to main content

CVE-2024-28863 — Vulnerability in tar — CVE Details

MEDIUM

Denial of service while parsing a tar file due to lack of folders count validation

Published March 22, 2024Updated September 10, 2026Source: OSV

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.

Check my package-lock.json

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

payload.txt archeive.tar.gz

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
Update tar to 6.2.1 or later
npm install tar@6.2.1
npm
Update node-tar to 6.2.1 or later
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).

PackageFixed In
tar npm · Affected: All versions6.2.1
node-tar npm · Affected: All versions6.2.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-400
    Uncontrolled Resource ConsumptionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

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

CVSS Score
6.5

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
1.08%
EPSS percentile: 64.4

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

GHSA-f5x3-32g6-xq36

Related CVEs

  • CVE-2026-59873
    CRITICAL

    node-tar: Decompression/parse DoS via unlimited input

  • CVE-2026-24842
    HIGH

    node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal

  • CVE-2021-32804
    HIGH

    Arbitrary File Creation/Overwrite due to insufficient absolute path sanitization

  • CVE-2021-37713
    HIGH

    Arbitrary File Creation/Overwrite on Windows via insufficient relative path sanitization

  • CVE-2026-26960
    HIGH

    Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction

  • CVE-2026-23745
    HIGH

    node-tar is Vulnerable to Arbitrary File Overwrite and Symlink Poisoning via Insufficient Path Sanitization

  • CVE-2026-59874
    HIGH

    node-tar: Negative tar entry size causes infinite loop in archive replace

  • CVE-2026-31802
    HIGH

    node-tar Symlink Path Traversal via Drive-Relative Linkpath

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json