Vulnerability · Published Jun 2, 2025 · Assigned by GitHub_M
CVE-2025-48387tar-fs has issue where extract can write outside the specified dir with a specific tarball
High 8.7
In plain English
A high-severity path traversal in tar-fs from mafintosh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-tar-fs | 2.1.3-0+deb12u1 | DEBIAN-CVE-2025-48387 |
| Debian:13 | node-tar-fs | 3.0.9+~cs2.0.4-1 | DEBIAN-CVE-2025-48387 |
| Debian:14 | node-tar-fs | 3.0.9+~cs2.0.4-1 | DEBIAN-CVE-2025-48387 |
| Ubuntu:25.10 | node-tar-fs | 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 | USN-8367-1 |
| npm | tar-fs | 3.0.9 | GHSA-8cj5-5rvv-wf4v |
| npm | tar-fs | 1.16.5 | GHSA-8cj5-5rvv-wf4v |
| npm | tar-fs | 2.1.3 | GHSA-8cj5-5rvv-wf4v |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v x_refsource_CONFIRM
- https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w x_refsource_MISC
- https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html