CVE-2024-12905
HIGH 7.5CVSS 3.1tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File
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.
- Published
- 27 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- 22e2d327-25fe-45d7-9f0c-dcd23b7108df
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-pq67-2wwv-3xjx
- Sources
- NVDJSONOSV GHSA-pq67-2wwv-3xjxJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 22e2d327-25fe-45d7-9f0c-dcd23b7108df (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | tar-fs | < 1.16.4 | 1.16.4 |
| OSV | npm | tar-fs | >= 2.0.0, < 2.1.2 | 2.1.2 |
| OSV | npm | tar-fs | >= 3.0.0, < 3.0.7 | 3.0.7 |
References
- https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed · WEB
- https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs · 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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Mar 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Mar 2025)