CVE-2024-12905 Details
Description
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 vulnerability in the tar-fs package, specifically in versions 0.0.0 prior to 1.16.4, 2.0.0 prior to 2.1.2, and 3.0.0 prior to 3.0.8, has been identified. This issue involves improper link resolution before file access, known as 'link following', and inadequate limitation of a pathname to a restricted directory, referred to as 'path traversal'. The vulnerability arises when a maliciously crafted tar file is extracted, leading to unauthorized file writes or overwrites outside the intended extraction directory. The problem is linked to the handling of symlinks, which can be exploited to create and overwrite files on the host filesystem.
Users can update to tar-fs versions 1.16.4, 2.1.2, or 3.0.8 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 27, 2025CISA-ADP
Assessed Mar 27, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed | seal | Source CodeVendor |
| https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs | seal | ExploitTechnical Analysis |
| https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html | CVE |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | seal |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | seal |
Affected Products
| Product | Versions |
|---|---|
| mafintosh tar-fs | 0.0.0 < 1.16.4 2.0.0 < 2.1.2 3.0.0 < 3.0.8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | seal |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Apr 20, 2025 | CVE Modified | seal |
| Mar 27, 2025 | New CVE Received | seal |
Volerion