CVE-2024-12905: Vulnerability in tar-fs: from 0.0.0
Patch soon. 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.
npm, CWE-22, CWE-59
- Exploitation
- None confirmed
- Severity
- 7.5 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-pq67-2wwv-3xjx
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Weakness
- CWE-22, CWE-59
- Published
- 27 Mar 2025
- Last change
- 17 Jun 2026
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- tar-fs: from 0.0.0 Before 1.16.4. Fixed in 1.16.4
- From 2.0.0 Before 2.1.2. Fixed in 2.1.2
- From 3.0.0 Before 3.0.8.. Fixed in 3.0.8.
Affected packages
Vulnerable version ranges and fixed releases
- tar-fs npm, Affected before 1.16.4. Fixed in 1.16.4
Advisories
Vendor and security advisories
- seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs
- lists.debian.org/debian-lts-announce/2025/06/msg00012.html
- arxiv.org/abs/2506.04962
Patches and fixes
Updates, commits and release notes
Related
- tar-fs: from 0.0.0 vulnerabilities Recent advisories, watch this product
- From 2.0.0 vulnerabilities Recent advisories, watch this product