CVEfocus › CVE database › CVE-2025-48387

CVE-2025-48387tar-fs has issue where extract can write outside the specified dir with a specific tarball

CVSS 8.7 HighEPSS 0.9% (higher than 57% of CVEs)Published 2025-06-02Updated 2025-11-03Assigner: GitHub_M

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.

CWE-22

What to do

Fixed builds are available from Debian, 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

4Fixed
2Fix pending
2Not 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-fsNot affected
vulnerable_code_not_present
Ubuntu 24.04node-tar-fsFix pending2.1.1-6ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-48387
Ubuntu 22.04node-tar-fsFix pending2.1.1-6ubuntu0.22.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-48387
Debian 14node-tar-fsFixed3.0.9+~cs2.0.4-1DEBIAN-CVE-2025-48387
Debian 13node-tar-fsFixed3.0.9+~cs2.0.4-1DEBIAN-CVE-2025-48387
Debian 12node-tar-fsFixed2.1.3-0+deb12u1DEBIAN-CVE-2025-48387
npm librarytar-fsFixed3.0.9GHSA-8cj5-5rvv-wf4v

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.