# CVE-2024-12905

- Priority: **Prioritise**
- Reason: Public exploit (exploit-database, 22-04-2025)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-03-27 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2024-12905, DEBIAN-CVE-2024-12905, CGA-95xw-rfjq-5q5x, CGA-g5w7-74j5-ph75, CGA-hvv5-qv4g-h4hw, CGA-p6wg-72q8-rw95, CGA-p7hq-5vmg-2q2q, CGA-pcvf-6266-gxjm, CGA-qh6r-79wc-52g6, CGA-rg69-52v8-cpvh, CGA-x455-f45g-v7cf, CGA-xgp6-qcxh-9c69, GHSA-pq67-2wwv-3xjx, CGA-2fcc-879v-396w, CGA-c24r-fvjx-r883, CGA-g6qj-pgw7-hfhw, CGA-v2wf-h6g7-mw99, CGA-wwf3-29h6-p2r4, CGA-xr38-j7cj-4jfh
- Record: https://cvemate.com/vulnerability/CVE-2024-12905 · JSON: https://cvemate.com/vulnerability/CVE-2024-12905/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 2.299%, percentile 83.862%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (exploit-database)

## Affected

- chainguard code-server (Chainguard): \< 4.105.1-r1
- chainguard kibana-7 (Chainguard): \< 7.17.28-r41
- chainguard sqlpad (Chainguard): \< 7.5.3-r1
- chainguard sqlpad-compat (Chainguard): \< 7.5.3-r1
- chainguard tileserver-gl (Chainguard): \< 5.2.0-r1
- chainguard tileserver-gl-compat (Chainguard): \< 5.2.0-r1
- chainguard tileserver-gl-fips (Chainguard): \< 5.2.0-r1
- chainguard tileserver-gl-fips-compat (Chainguard): \< 5.2.0-r1
- wolfi code-server (Wolfi): \< 4.105.1-r1
- wolfi sqlpad (Wolfi): \< 7.5.3-r1
- wolfi sqlpad-compat (Wolfi): \< 7.5.3-r1
- wolfi tileserver-gl (Wolfi): \< 5.2.0-r1
- wolfi tileserver-gl-compat (Wolfi): \< 5.2.0-r1
- debian node-tar-fs (Debian): \< 2.1.3-0+deb12u1 \| \< 3.0.8+~cs2.0.4-1
- ubuntu node-tar-fs (Ubuntu): \< 2.1.1-6ubuntu0.22.04.1~esm1 \| \< 2.1.1-6ubuntu0.24.04.1~esm1
- Npm tar-fs (Npm): \< 1.16.4 \| ≥ 2.0.0, \< 2.1.2 \| ≥ 3.0.0, \< 3.0.7

## References

- <https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed>
- <https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs>
- <https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html>
- <https://ubuntu.com/security/CVE-2024-12905>
- <https://www.cve.org/CVERecord?id=CVE-2024-12905>
- <https://ubuntu.com/security/notices/USN-8367-1>
- <https://security-tracker.debian.org/tracker/CVE-2024-12905>
- <https://registry.npmjs.org>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12905.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12905>
- <https://github.com/mafintosh/tar-fs>
- <https://arxiv.org/abs/2506.04962>
- <https://arxiv.org/pdf/2506.04962>

---

Data as of 2026-12-05T09:08:55.942Z. 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
