CVE-2025-48387

NameCVE-2025-48387
Descriptiontar-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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-tar-fs (PTS)bullseye2.1.1-2vulnerable
bookworm2.1.1-6vulnerable
trixie3.0.8+~cs2.0.4-1vulnerable
sid3.0.9+~cs2.0.4-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-tar-fssource(unstable)3.0.9+~cs2.0.4-1

Notes

https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v
Fixed by: https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f (v3.0.9)

Search for package or bug name: Reporting problems