Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.4
Fix Suggestion:
Update to version v1.16.4
https://github.com/mafintosh/tar-fs.git (GITHUB):
Affected version(s) >=v3.0.0 <v3.0.8
Fix Suggestion:
Update to version v3.0.8
https://github.com/mafintosh/tar-fs.git (GITHUB):
Affected version(s) >=v2.0.0 <v2.1.2
Fix Suggestion:
Update to version v2.1.2
tar-fs (NPM):
Affected version(s) >=3.0.0 <3.0.8
Fix Suggestion:
Update to version 3.0.8
tar-fs (NPM):
Affected version(s) >=0.1.0 <1.16.4
Fix Suggestion:
Update to version 1.16.4
tar-fs (NPM):
Affected version(s)
Fix Suggestion:
Update to version 3.0.7
tar-fs (NPM):
Affected version(s) >=0.1.0 <1.16.4
Fix Suggestion:
Update to version 1.16.4
tar-fs (NPM):
Affected version(s) >=2.0.0 <2.1.2
Fix Suggestion:
Update to version 2.1.2
Do you need more information?
Contact Us
CVSS 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)
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Link Resolution Before File Access ('Link Following')
EPSS
Base Score:
1.32