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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | tar-fs | 0.0.0 – < 1.16.4, 2.0.0 – < 2.1.2, 3.0.0 – < 3.0.8 | 1.16.4 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-tar-fs | 3.0.8+~cs2.0.4-1 | — |
| Debian 13 | node-tar-fs | 3.0.8+~cs2.0.4-1 | — |
| Debian 12 | node-tar-fs | 2.1.3-0+deb12u1 | — |
| Debian 11 | node-tar-fs | 2.1.3-0+deb11u1 | DLA-4214-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 | USN-8367-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | node-tar-fs | 2.1.1-6ubuntu0.24.04.1~esm1 | USN-8367-1 |
| Ubuntu Pro 22.04 LTS | node-tar-fs | 2.1.1-6ubuntu0.22.04.1~esm1 | USN-8367-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 2 (CBL-Mariner) | reaper | 3.1.1-18 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | code-server | 4.105.1-r1 | — |
| Wolfi rolling | sqlpad +1 | 7.5.3-r1 | — |
| Wolfi rolling | tileserver-gl +1 | 5.2.0-r1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- tar-fs 3.0.0 - Arbitrary File Write/Overwrite EDB-52268 · local · Apr 22, 2025
GitHub 1 repository
-
theMcSam/CVE-2024-12905-PoC ★ 1 · Apr 24, 2025
tar-fs file write/overwrite vulnerability
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | tar-fs | < 1.16.4 | 1.16.4 | GHSA-pq67-2wwv-3xjx |
| npm | tar-fs | >= 2.0.0, < 2.1.2 | 2.1.2 | GHSA-pq67-2wwv-3xjx |
| npm | tar-fs | >= 3.0.0, < 3.0.7 | 3.0.7 | GHSA-pq67-2wwv-3xjx |
Advisories 2
- USN-8367-1 node-tar-fs vulnerabilities Ubuntu Security Notices (USN) · Jun 2, 2026
- DLA-4214-1 node-tar-fs - security update Debian Security (DSA / DLA) · Mar 9, 2026