Vulnerability · Published Jun 2, 2025 · Assigned by GitHub_M

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

High 8.7

In plain English

A high-severity path traversal in tar-fs from mafintosh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.6%top 52.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-tar-fs2.1.3-0+deb12u1DEBIAN-CVE-2025-48387
Debian:13node-tar-fs3.0.9+~cs2.0.4-1DEBIAN-CVE-2025-48387
Debian:14node-tar-fs3.0.9+~cs2.0.4-1DEBIAN-CVE-2025-48387
Ubuntu:25.10node-tar-fs3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1USN-8367-1
npmtar-fs3.0.9GHSA-8cj5-5rvv-wf4v
npmtar-fs1.16.5GHSA-8cj5-5rvv-wf4v
npmtar-fs2.1.3GHSA-8cj5-5rvv-wf4v

Affected products (as reported)

VendorProductVersions
mafintosh tar-fs < 1.16.5>= 2.0.0, < 2.1.3>= 3.0.0, < 3.0.9

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References