CVE-2024-12905
tar-fs: link following and path traversal via maliciously crafted tar file
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
2Exploited in Wild
-Decision
Descriptions
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.
A flaw was found in the tar-fs package for Node.js. In affected versions, unauthorized file writes or overwrites outside the intended extraction directory can occur when extracting a maliciously crafted tar file. The issue is associated with index.js in the tar-fs package.
Red Hat OpenShift Dev Spaces 3.21 has been released. Issues addressed include bypass, denial of service, and traversal vulnerabilities.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2024-12-23 CVE Reserved
- 2025-03-27 CVE Published
- 2025-04-20 CVE Updated
- 2025-04-22 First Exploit
- 2025-06-12 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-59: Improper Link Resolution Before File Access ('Link Following')
CAPEC
- CAPEC-126: Path Traversal
- CAPEC-132: Symlink Attack
References (6)
URL | Tag | Source |
---|---|---|
https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs | Technical Description |
URL | Date | SRC |
---|---|---|
https://packetstorm.news/files/id/190592 | 2025-04-22 | |
https://github.com/theMcSam/CVE-2024-12905-PoC | 2025-04-25 |
URL | Date | SRC |
---|---|---|
https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed | 2025-03-27 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2024-12905 | 2025-06-04 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2355460 | 2025-06-04 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Debian Search vendor "Debian" | Debian Linux Search vendor "Debian" for product "Debian Linux" | * | - |
Affected
| ||||||
Fedoraproject Search vendor "Fedoraproject" | Fedora Search vendor "Fedoraproject" for product "Fedora" | * | - |
Affected
|