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

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 1.16.5, 2.1.3, 3.0.9 (CNA); fix release not confirmed
- Status: published
- Published: 2025-06-02 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-48387, DEBIAN-CVE-2025-48387, CGA-4g9p-x3h3-qmvp, CGA-4wpg-jpjr-w49v, CGA-6288-564r-63f3, CGA-665m-w3hw-pg62, CGA-79vm-p565-xhm5, CGA-7xq3-w7cw-xvqq, CGA-9h52-w28c-ffj4, CGA-cf8h-p4c7-9q69, CGA-hxm3-45c8-22m2, CGA-jj55-79h6-j79q, CGA-p8w9-pg2v-r789, CGA-r372-mgxp-pxpr, CGA-rvxp-4f22-c74j, GHSA-8cj5-5rvv-wf4v, CGA-2j4x-9wq6-h3r2, CGA-2p83-gvp6-8hgm, CGA-3rc6-42g3-vmcw, CGA-45vr-x754-w48f, CGA-479w-hmf5-7gg2, CGA-4g5m-xjg8-wrvr, CGA-4jc5-5h59-r77v, CGA-54gq-xxc6-rw7x, CGA-5829-xqh8-r452, CGA-645w-fj54-6rjw, CGA-64cf-pq7f-hmh8, CGA-6699-9g5c-x7jp, CGA-75q4-v4xq-cfrg, CGA-76fj-qp97-94w2, CGA-7cx5-rwwh-66px, CGA-87m4-2cqg-9gq3, CGA-8g2j-fqcj-v9wm, CGA-8hxg-2pw6-9262, CGA-9fww-mfvg-gv3w, CGA-c2vx-7vmx-7fmf, CGA-c6xm-46vm-pjvc, CGA-cvp7-c7jx-7q8p, CGA-f88p-7hcf-jfj7, CGA-fv6m-xp44-jhvx, CGA-g38p-22mq-2g32, CGA-g4vr-prwq-m2p3, CGA-hg57-59j8-j2r6, CGA-hgqm-8mq8-cwj4, CGA-hv4w-r5vh-p5g7, CGA-j7qg-rpx6-cp9m, CGA-j8jh-f9vj-49hh, CGA-jcwx-65vf-j296, CGA-jqjm-86jx-rx2h, CGA-jvcg-3cph-fr98, CGA-jvrp-hp9r-8m85, CGA-mgvq-w829-cxmg, CGA-p6wv-3gcf-r3fv, CGA-pm33-9wrp-5428, CGA-pm5j-8x3r-7563, CGA-qf67-pw9x-rq26, CGA-qhr2-v97x-gx47, CGA-r236-656g-7cxv, CGA-r2wc-hfw3-h5pg, CGA-rprp-4p49-cjxf, CGA-v25h-cwh3-6r8j, CGA-vg75-vgcw-6h67, CGA-vpjg-8735-jh8f, CGA-vqq7-3wrx-mw7m, CGA-w85v-jxrp-rc39, CGA-wmpg-3gxv-6wwq, CGA-wq9p-wwcw-r3hw, CGA-wvx8-c27x-2fjq, CGA-x2pr-r998-83pg, CGA-x992-8cvm-gh8q, CGA-x9ch-5x9p-c687, CGA-xgf7-v3mp-rw7j
- Record: https://cvemate.com/vulnerability/CVE-2025-48387 · JSON: https://cvemate.com/vulnerability/CVE-2025-48387/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.589%, percentile 49.597%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 46)

- chainguard code-server (Chainguard): \< 4.105.1-r1
- chainguard gitlab-rails-ce-18.1 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.10 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.11 (Chainguard): All versions (No fix recorded) \| \< 18.11.13-r0
- chainguard gitlab-rails-ce-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.8 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-18.9 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-19.0 (Chainguard): \< 19.0.3-r1
- chainguard gitlab-rails-ce-19.1 (Chainguard): \< 19.1.7-r6
- chainguard gitlab-rails-ce-19.2 (Chainguard): \< 19.2.5-r2
- chainguard gitlab-rails-ce-19.3 (Chainguard): \< 19.3.1-r6
- chainguard gitlab-rails-ce-fips-18.1 (Chainguard): All versions (No fix recorded) \| \< 18.1.6-r15
- chainguard gitlab-rails-ce-fips-18.10 (Chainguard): \< 18.10.8-r8
- chainguard gitlab-rails-ce-fips-18.11 (Chainguard): \< 18.11.12-r2
- chainguard gitlab-rails-ce-fips-18.5 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.6 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.7 (Chainguard): All versions (No fix recorded)
- chainguard gitlab-rails-ce-fips-18.8 (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v>
- <https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w>
- <https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f>
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html>
- <https://ubuntu.com/security/CVE-2025-48387>
- <https://www.cve.org/CVERecord?id=CVE-2025-48387>
- <https://ubuntu.com/security/notices/USN-8367-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-48387>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-48387>
- <https://github.com/mafintosh/tar-fs>

---

Data as of 2026-12-05T09:19:31.162Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
