# CVE-2025-59343: tar-fs has a symlink validation bypass if destination directory is predictable 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.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2025-09-24T17:43:34.728Z
- Modified: 2026-09-10T03:50:28.767Z
- Also known as: GHSA-vj76-c3g6-qr5v
- Weaknesses: CWE-22, CWE-61
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## 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-vj76-c3g6-qr5v> (web)
- <https://github.com/mafintosh/tar-fs/commit/0bd54cdf06da2b7b5b95cd4b062c9f4e0a8c4e09> (web)
- <https://lists.debian.org/debian-lts-announce/2025/09/msg00028.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-59343> (advisory)
- <https://github.com/mafintosh/tar-fs> (package)

## Sources

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

---

Page: https://cve.day/CVE-2025-59343 · Whole record: https://cve.day/CVE-2025-59343.json · Rebuilt by cve.day 2026-11-25T22:59:05.140Z
