# CVE-2025-59343: tar-fs has a symlink validation bypass if destination directory is predictable 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.1.1 (CNA); fix release not confirmed
- Status: published
- Published: 2025-09-24 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-59343, DEBIAN-CVE-2025-59343, DLA-4313-1, DSA-6013-1, CGA-4w5g-7hcj-xc4m, CGA-5hvc-h8hm-4fvx, CGA-6524-qq6p-6hr4, CGA-6gp7-2fjr-5qrp, CGA-9m85-p3v8-29h8, CGA-h28x-3rx2-543f, CGA-h4gc-xx9h-g63j, CGA-j25w-pf4q-8m75, CGA-qg2f-946x-6wfw, CGA-vvhh-mgwr-v2h5, CGA-w5gq-9794-8c3p, CGA-wmh2-2699-gxqx, GHSA-vj76-c3g6-qr5v, CGA-24pj-j6jm-hrww, CGA-29xr-h2qv-ffh8, CGA-2cpc-jrf8-2hr2, CGA-2f6v-37c5-6mfg, CGA-2h43-2qj8-qccx, CGA-2h4r-fr4c-3qp5, CGA-2wjq-88w3-q42f, CGA-3222-jc4c-qgv8, CGA-34rm-28rj-gx9p, CGA-38v6-mgf4-f43f, CGA-3c4v-523w-3f69, CGA-3p66-vfq3-6m2q, CGA-3w84-3frv-6gxg, CGA-4259-wr96-vwcx, CGA-436p-hccr-j87p, CGA-476v-c5ff-wmqv, CGA-4c39-72c4-p4ff, CGA-4c7x-m7mv-c992, CGA-4m9v-9vh3-3g5w, CGA-56x5-p9gc-7qcj, CGA-5f94-w2rg-9xv5, CGA-5pph-8rc6-hxrx, CGA-5rw3-9xcg-x8gg, CGA-5x93-f94c-xcf3, CGA-68vp-2qvg-h6m8, CGA-6jjv-jw4p-gg74, CGA-729q-g729-jhh5, CGA-77qp-c238-c7r2, CGA-788f-m6xr-vrv2, CGA-7c7j-p8gv-cgwh, CGA-7jcx-8727-rf4v, CGA-7w88-9582-jwrq, CGA-82vm-834p-fh64, CGA-86mx-g7h6-226f, CGA-88xg-8h7h-9mch, CGA-89vx-p934-wh65, CGA-8j5p-xhh8-fp47, CGA-8qmc-x6v4-9cqr, CGA-8xq9-p8gx-m89r, CGA-99f5-7c34-288v, CGA-9j52-xc59-8rqc, CGA-9qq2-m745-gcf8, CGA-9r2v-h2gw-frf8, CGA-9v8c-xrj9-762m, CGA-9wx7-35hh-4xmg, CGA-9xvw-cw8j-pjh3, CGA-c679-4w7p-x352, CGA-c7jf-ffgm-pf79, CGA-c923-xrgm-vq6f, CGA-cfg8-r649-8852, CGA-cgc9-f235-w7wm, CGA-cm6p-2jjg-w7c3, CGA-cmvq-3v9x-mcv6, CGA-cmwf-g5q5-8xjp, CGA-cwc4-2p9v-33pq, CGA-f23c-6wvw-788w, CGA-f9m7-73m6-wx87, CGA-fmv6-8crg-pff7, CGA-fpgf-gq23-mg3w, CGA-fqhr-95pw-jcm4, CGA-frff-g7qw-vxgh, CGA-fw6c-fwxq-964j, CGA-g39v-g525-x2rg, CGA-ghgq-mrf6-2crg, CGA-gvf8-66j3-4g9q, CGA-h67r-grcc-57hp, CGA-h86g-m5gp-qf69, CGA-h89c-v3m3-vc8m, CGA-h8hw-r3fm-v4jw, CGA-hc8g-759p-gx53, CGA-hcq4-q53m-rjrv, CGA-hgmq-8qr4-67q5, CGA-hh46-p9cw-mm82, CGA-hh73-5qvq-9q33, CGA-hm74-j6w6-36w7, CGA-hp6f-2v5g-xp8v, CGA-hrfc-g76g-crq8, CGA-j4h6-jc46-q9qj, CGA-j4h7-hqw2-9hj4, CGA-jcqj-5v85-qr52, CGA-jg5v-v744-2p34, CGA-jg5x-j6vf-f33q, CGA-jh6w-299h-ccw7, CGA-jqj2-95mv-x53h, CGA-jvm7-2mjx-28g3, CGA-m5r9-r83x-4ch6, CGA-mgrv-cp49-hrx3, CGA-p2pf-68mv-m9h8, CGA-p7pp-wmcp-p5hg, CGA-p8fj-fvwx-cvq2, CGA-pcp8-xpv8-3x9m, CGA-pcvq-mxvg-4mw3, CGA-q5h7-8987-52q8, CGA-qc82-c6vv-49r4, CGA-qq2g-7c8f-2h46, CGA-r54w-j7p4-qhf2, CGA-rhrf-9m7p-cr57, CGA-rrg3-2mm7-hwp5, CGA-rrmv-2ff9-8jjc, CGA-rv4p-wmh3-3jcc, CGA-v6qj-4pxv-wjch, CGA-vccw-8cr6-h9p2, CGA-vcgg-6rgh-f32g, CGA-vfjq-665x-jvv7, CGA-vmjc-4mqx-w392, CGA-vmjw-wmrq-9cr2, CGA-vp3p-hv48-gq5w, CGA-vvrm-x2qj-58c9, CGA-vvv2-mcww-5fvx, CGA-w2vj-5chq-x8mv, CGA-w52j-j45x-f6vc, CGA-x93x-w2wf-279m
- Record: https://cvemate.com/vulnerability/CVE-2025-59343 · JSON: https://cvemate.com/vulnerability/CVE-2025-59343/json

## Description

```text
tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.1.1, 2.1.3, and 1.16.5 are vulnerable to symlink validation bypass if the destination directory is predictable with a specific tarball. This issue has been patched in version 3.1.1, 2.1.4, and 1.16.6. A workaround involves using the ignore option on 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.604%, percentile 50.352%, 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 56)

- 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): \< 18.1.6-r15 \| All versions (No fix recorded)
- 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-vj76-c3g6-qr5v>
- <https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09>
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html>
- <https://ubuntu.com/security/CVE-2025-59343>
- <https://www.cve.org/CVERecord?id=CVE-2025-59343>
- <https://ubuntu.com/security/notices/USN-8367-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-59343>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/59xxx/CVE-2025-59343.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59343>
- <https://github.com/mafintosh/tar-fs>

---

Data as of 2026-12-05T08:49:57.531Z. 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
