CVEfocus › CVE database › CVE-2025-59343

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

CVSS 8.7 HighEPSS 0.8% (higher than 52% of CVEs)Published 2025-09-24Updated 2025-11-03Assigner: GitHub_M

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.

CWE-22CWE-61

What to do

Fixed builds are available from Debian, Ubuntu, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
2Fix pending
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-tar-fsNot affected
vulnerable_code_not_present
Ubuntu 25.10node-tar-fsFixed3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1UBUNTU-CVE-2025-59343
Ubuntu 24.04node-tar-fsFix pending2.1.1-6ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-59343
Ubuntu 22.04node-tar-fsFix pending2.1.1-6ubuntu0.22.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-59343
Debian 14node-tar-fsFixed3.0.9+~cs2.0.4-2DEBIAN-CVE-2025-59343
Debian 13node-tar-fsFixed3.0.9+~cs2.0.4-1+deb13u1DEBIAN-CVE-2025-59343
Debian 12node-tar-fsFixed2.1.3-0+deb12u2DEBIAN-CVE-2025-59343
npm librarytar-fsFixed1.16.6GHSA-vj76-c3g6-qr5v

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.