CVE-2025-48387
tar-fs can extract outside the specified dir with a specific tarball
EPSS 1.0%
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.
How to fix CVE-2025-48387
To remediate CVE-2025-48387, upgrade the affected package to a fixed version below.
- Debian/node-tar-fs—upgrade to 2.1.3-0+deb11u1 or later
- npm/tar-fs—upgrade to 1.16.5 or later
Is CVE-2025-48387 being exploited?
Low — EPSS is 1.0%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 2.1.3-0+deb11u1
- from 0, < 1.16.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |