CVE-2024-12905
tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File
Reported by seal · Published March 27, 2025
tar-fs is fixed in 3.0.8, 3.0.7, 2.1.2 and 1 more (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tar-fs | npm | 3.0.8, 3.0.7, 2.1.2, 1.16.4 |
| kibana-7 | Chainguard | 7.17.28-r41 |
| code-server | Chainguard | 4.105.1-r1 |
| code-server | Wolfi | 4.105.1-r1 |
| tileserver-gl-fips | Chainguard | 5.2.0-r1 |
| kibana-8 | Chainguard | 8.17.4-r41 |
| tileserver-gl | Chainguard | 5.2.0-r1 |
| sqlpad | Wolfi | 7.5.3-r1 |
| sqlpad | Chainguard | 7.5.3-r1 |
| tileserver-gl | Wolfi | 5.2.0-r1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0.0.0, 2.0.0, 3.0.0 | ||
| 0.0.0, 2.0.0, 3.0.0 |
Timeline
- Mar 27, 2025 CVE Published
- Mar 27, 2025 PoC Published (9 in total, the first dated here)
- Mar 28, 2025 EPSS Score (30 in total, the first dated here)
- Mar 29, 2025 Coalition ESS Score (13 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-12905
vulnetix vdb fixes CVE-2024-12905
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-12905/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- patch
- technical-description
- https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html url