{"id":"CVE-2025-48387","summary":"tar-fs has issue where extract can write outside the specified dir with a specific tarball","details":"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.","aliases":["GHSA-8cj5-5rvv-wf4v"],"modified":"2026-05-18T05:58:08.426660457Z","published":"2025-06-02T19:20:18.220Z","related":["CGA-8m82-xm45-jv83","GHSA-8cj5-5rvv-wf4v","GHSA-xrg4-qp5w-2c3w"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json"},"references":[{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json"},{"type":"ADVISORY","url":"https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w"},{"type":"ADVISORY","url":"https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-48387"},{"type":"FIX","url":"https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mafintosh/tar-fs","events":[{"introduced":"6d66143dc5e40480dd6135a4453f6da26a5602e0"},{"fixed":"2ceedf4cf807e89a071ebd585291aa785c980829"}]}],"versions":["v3.0.8","v3.0.7","v3.0.6","v3.0.5","v3.0.4","v3.0.3","v3.0.2","v3.0.1","v3.0.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-48387.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}]}