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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.58%, higher than 49% of CVEs (2026-12-01)
- Published: 2025-06-02T19:20:18.220Z
- Modified: 2026-09-10T03:50:24.933Z
- Also known as: GHSA-8cj5-5rvv-wf4v
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- mafintosh tar-fs: < 1.16.5; >= 2.0.0, < 2.1.3; >= 3.0.0, < 3.0.9
- tar-fs (npm): before 1.16.5; from 2.0.0 before 2.1.3; from 3.0.0 before 3.0.9

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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

- <https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v> (web)
- <https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w> (web)
- <https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f> (web)
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48387> (advisory)
- <https://github.com/mafintosh/tar-fs> (package)

## Sources

- CVE List: [CVE-2025-48387](https://www.cve.org/CVERecord?id=CVE-2025-48387), CVE Terms of Use, modified 2025-11-03
- GitHub Advisory Database: [GHSA-8cj5-5rvv-wf4v](https://github.com/advisories/GHSA-8cj5-5rvv-wf4v), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-48387](https://nvd.nist.gov/vuln/detail/CVE-2025-48387), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-48387 · Whole record: https://cve.day/CVE-2025-48387.json · Rebuilt by cve.day 2026-11-25T22:58:58.669Z
