What’s Vulnerable › Vulnerabilities
CVE-2024-28863: node-tar vulnerable to denial of service while parsing a tar file due to lack of folders count validation
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-03-21 · updated 2026-06-17
- Weakness: CWE-400
Description
node-tar is a Tar for Node.js. node-tar prior to version 6.2.1 has no limit on the number of sub-folders created in the folder creation process. An attacker who generates a large number of sub-folders can consume memory on the system running node-tar and even crash the Node.js client within few seconds of running it using a path with too many sub-folders inside. Version 6.2.1 fixes this issue by preventing extraction in excessively deep sub-folders.
Affected products
- isaacs node-tar: before 6.2.1 — fixed in 6.2.1
- Npm Node-Tar: before 6.2.1 — fixed in 6.2.1
- Npm Tar: before 6.2.1 — fixed in 6.2.1
How to fix
Upgrade to a fixed version: isaacs node-tar 6.2.1; Npm Node-Tar 6.2.1; Npm Tar 6.2.1. Check the vendor advisory for mitigations.
References
- https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7
- https://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36
- https://security.netapp.com/advisory/ntap-20240524-0005/
- https://github.com/isaacs/node-tar/commit/fe8cd57da5686f8695415414bda49206a545f7f7
- https://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36
- https://security.netapp.com/advisory/ntap-20240524-0005/
Get alerted when CVE-2024-28863 or the next vulnerability affects your stack