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.
CVE-2024-28863 - Medium Severity Vulnerability
Vulnerable Libraries - tar-2.2.1.tgz, tar-4.4.8.tgz
tar-2.2.1.tgz
tar for node
Library home page: https://registry.npmjs.org/tar/-/tar-2.2.1.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/tar
Dependency Hierarchy: - lerna-3.13.4.tgz (Root Library) - bootstrap-3.13.3.tgz - run-lifecycle-3.13.0.tgz - npm-lifecycle-2.1.0.tgz - node-gyp-3.8.0.tgz - :x: **tar-2.2.1.tgz** (Vulnerable Library)
tar-4.4.8.tgz
tar for node
Library home page: https://registry.npmjs.org/tar/-/tar-4.4.8.tgz
Path to dependency file: /package.json
Path to vulnerable library: /node_modules/tar
Dependency Hierarchy: - cli-plugin-typescript-4.0.0-alpha.0.tgz (Root Library) - fork-ts-checker-webpack-plugin-1.2.0.tgz - chokidar-2.0.4.tgz - fsevents-1.2.7.tgz - node-pre-gyp-0.10.3.tgz - :x: **tar-4.4.8.tgz** (Vulnerable Library)
Found in HEAD commit: b9888ec61e269386b4fab790d7d16670ad49b548
Found in base branch: fix-babel-core-js
Vulnerability Details
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.
Publish Date: 2024-03-21
URL: CVE-2024-28863
CVSS 3 Score Details (6.5)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: Required - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://github.com/isaacs/node-tar/security/advisories/GHSA-f5x3-32g6-xq36
Release Date: 2024-03-21
Fix Resolution: tar - 6.2.1
Step up your Open Source Security Game with Mend here