CVE-2025-48387: tar-fs has issue where extract can write outside the specified dir with a specific tarball
High · CVSS 8.7 (CVSS 4.0)EPSS 0.58%, 47th percentilePublished Updated Assigner: GitHub_M
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.
CWE-22
Tracked companies
Mapped from the CVE’s affected-product data, NVD CPE matches, vendor advisories or package feeds. A mapping means the vendor’s software is named, not that its hosted service was exposed.
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
mafintosh: tar-fs
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w (opens in new tab)
- github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f (opens in new tab)
- github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)