CVE-2025-48387 tar-fs has issue where extract can write outside the specified dir with a specific tarball
HighCVSS 8.7
EPSS 0.58%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| cbl-mariner reaper(CBL-Mariner 2.0) | < 3.1.1-19 | 3.1.1-19 | Fixed |
| debian/node-tar-fs(Debian 12) | < 2.1.3-0+deb12u1; = 2.1.1-6 | 2.1.3-0+deb12u1 | Fixed |
| debian/node-tar-fs(Debian 13) | < 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 | Fixed |
| debian/node-tar-fs(Debian 14) | < 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 | Fixed |
| Microsoft cm2 reaper 3.1.1-19 | < 3.1.1-19 | 3.1.1-19 | Fixed |
| npm tar-fs(npm) | < 1.16.5; >= 2.0.0, < 2.1.3; >= 3.0.0, < 3.0.9 | 1.16.5, 2.1.3, 3.0.9 | Fixed |
| ubuntu/node-tar-fs(Ubuntu 22.04) | < 2.1.1-6ubuntu0.22.04.1~esm1 | 2.1.1-6ubuntu0.22.04.1~esm1 | Fixed |
| ubuntu/node-tar-fs(Ubuntu 24.04) | < 2.1.1-6ubuntu0.24.04.1~esm1 | 2.1.1-6ubuntu0.24.04.1~esm1 | Fixed |
| Mafintosh tar-fs | = < 1.16.5; = >= 2.0.0, < 2.1.3; = >= 3.0.0, < 3.0.9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Microsoft cm2 reaper 3.1.1-19 | < 3.1.1-19 | 3.1.1-19 |
| cbl-mariner reaper(CBL-Mariner:2.0) | < 3.1.1-19 | 3.1.1-19 |
| debian/node-tar-fs(Debian:12) | < 2.1.3-0+deb12u1 | 2.1.3-0+deb12u1 |
| debian/node-tar-fs(Debian:12) | = 2.1.1-6 | No fix listed |
| debian/node-tar-fs(Debian:13) | < 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 |
| debian/node-tar-fs(Debian:14) | < 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 |
| npm tar-fs(npm) | < 1.16.5 | 1.16.5 |
| npm tar-fs(npm) | >= 2.0.0, < 2.1.3 | 2.1.3 |
| npm tar-fs(npm) | >= 3.0.0, < 3.0.9 | 3.0.9 |
| Mafintosh tar-fs | = < 1.16.5 | No fix listed |
| Mafintosh tar-fs | = >= 2.0.0, < 2.1.3 | No fix listed |
| Mafintosh tar-fs | = >= 3.0.0, < 3.0.9 | No fix listed |
| ubuntu/node-tar-fs(Ubuntu:22.04) | < 2.1.1-6ubuntu0.22.04.1~esm1 | 2.1.1-6ubuntu0.22.04.1~esm1 |
| ubuntu/node-tar-fs(Ubuntu:24.04) | < 2.1.1-6ubuntu0.24.04.1~esm1 | 2.1.1-6ubuntu0.24.04.1~esm1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-48387 vendor-advisory
- https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f patch
- https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w vendor-advisory
- lists.debian.org
- github.com
- Ubuntu CVE tracker vendor-advisory
- USN-8367-1 vendor-advisory
- www.cve.org
- github.com product