CVE-2024-12905
March 27, 2025
An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.
This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.
Affected Packages
https://github.com/mafintosh/tar-fs.git (GITHUB):
Affected version(s) >=v0.1.0 <v1.16.4Fix Suggestion:
Update to version v1.16.4https://github.com/mafintosh/tar-fs.git (GITHUB):
Affected version(s) >=v3.0.0 <v3.0.8Fix Suggestion:
Update to version v3.0.8https://github.com/mafintosh/tar-fs.git (GITHUB):
Affected version(s) >=v2.0.0 <v2.1.2Fix Suggestion:
Update to version v2.1.2tar-fs (NPM):
Affected version(s) >=3.0.0 <3.0.8Fix Suggestion:
Update to version 3.0.8tar-fs (NPM):
Affected version(s) >=0.1.0 <1.16.4Fix Suggestion:
Update to version 1.16.4tar-fs (NPM):
Affected version(s) Fix Suggestion:
Update to version 3.0.7tar-fs (NPM):
Affected version(s) >=0.1.0 <1.16.4Fix Suggestion:
Update to version 1.16.4tar-fs (NPM):
Affected version(s) >=2.0.0 <2.1.2Fix Suggestion:
Update to version 2.1.2Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
1.32