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

> CVE-2025-48387: tar-fs has issue where extract can write outside the specified dir with a specific tarball. CVSS 8.7 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2025-48387
Last updated: 2026-06-17T09:29:35Z

- Published: 2025-06-02 19:20 UTC · Updated: 2026-06-17 09:29 UTC · Assigner: GitHub\_M
- CVSS: 8.7 (CVSS 4.0) · Severity: High
- EPSS: 0.58%, 47th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-22

## 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.

## Affected vendors and products

- mafintosh: tar-fs

## Tracked companies

- [Confluence](https://rewindex.com/company/confluence.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-48387)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-48387)
- [https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w](https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w)
- [https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f](https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f)
- [https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v](https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-48387 · Markdown: https://rewindex.com/cve/CVE-2025-48387.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-48387 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:10:51.436Z
