Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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