Skip to content

CVE-2025-59343 tar-fs has a symlink validation bypass if destination directory is predictable with a specific tarball

HighCVSS 8.7 EPSS 0.58%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on non files/directories.

Upgrade path

7 packages: 6 fixed.

PackageAffectedFixed inStatus
debian/node-tar-fs(Debian 12) < 2.1.3-0+deb12u2; = 2.1.1-6; = 2.1.3-0+deb12u1 2.1.3-0+deb12u2 Fixed
debian/node-tar-fs(Debian 13) < 3.0.9+~cs2.0.4-1+deb13u1; = 3.0.9+~cs2.0.4-1 3.0.9+~cs2.0.4-1+deb13u1 Fixed
debian/node-tar-fs(Debian 14) < 3.0.9+~cs2.0.4-2; = 3.0.9+~cs2.0.4-1 3.0.9+~cs2.0.4-2 Fixed
npm tar-fs(npm) < 1.16.6; >= 2.0.0, < 2.1.4; >= 3.0.0, < 3.1.1 1.16.6, 2.1.4, 3.1.1 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.1.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/node-tar-fs(Debian:12) < 2.1.3-0+deb12u2 2.1.3-0+deb12u2
debian/node-tar-fs(Debian:12) = 2.1.1-6 No fix listed
debian/node-tar-fs(Debian:12) = 2.1.3-0+deb12u1 No fix listed
debian/node-tar-fs(Debian:13) < 3.0.9+~cs2.0.4-1+deb13u1 3.0.9+~cs2.0.4-1+deb13u1
debian/node-tar-fs(Debian:13) = 3.0.9+~cs2.0.4-1 No fix listed
debian/node-tar-fs(Debian:14) < 3.0.9+~cs2.0.4-2 3.0.9+~cs2.0.4-2
debian/node-tar-fs(Debian:14) = 3.0.9+~cs2.0.4-1 No fix listed
npm tar-fs(npm) >= 3.0.0, < 3.1.1 3.1.1
npm tar-fs(npm) >= 2.0.0, < 2.1.4 2.1.4
npm tar-fs(npm) < 1.16.6 1.16.6
Mafintosh tar-fs = >= 3.0.0, < 3.1.1 No fix listed
Mafintosh tar-fs = >= 2.0.0, < 2.1.3 No fix listed
Mafintosh tar-fs = < 1.16.5 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