# CVE-2024-12905: tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

- Severity: High 7.5 (CVSS:3.1, scored by seal) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A: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): 2.30%, higher than 83% of CVEs (2026-12-01)
- Published: 2025-03-27T16:25:34.410Z
- Modified: 2026-09-10T03:50:23.170Z
- Also known as: GHSA-pq67-2wwv-3xjx
- Weaknesses: CWE-22, CWE-59
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: seal

## Description

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.

This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.

(As written by CVE List.)

## Affected

- tar-fs: from 0.0.0 before 1.16.4; from 2.0.0 before 2.1.2; from 3.0.0 before 3.0.8
- tar-fs (npm): before 1.16.4; from 2.0.0 before 2.1.2; from 3.0.0 before 3.0.7

## Every score

- seal: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed> (patch, web)
- <https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs> (technical-description, web)
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12905> (advisory)
- <https://arxiv.org/abs/2506.04962> (web)
- <https://arxiv.org/pdf/2506.04962> (web)
- <https://github.com/mafintosh/tar-fs> (package)

## Sources

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

---

Page: https://cve.day/CVE-2024-12905 · Whole record: https://cve.day/CVE-2024-12905.json · Rebuilt by cve.day 2026-11-25T22:58:52.450Z
