{"cve":"CVE-2024-12905","nvd":{"published":"2025-03-27T17:15:53.250","modified":"2026-06-17T07:00:44.367","status":"Deferred","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.\n\nThis 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-22","CWE-59"],"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"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:28.034033815+00:00"},"epss":{"cve":"CVE-2024-12905","score":0.02299,"percentile":0.83295,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-pq67-2wwv-3xjx","url":"https://osv.dev/vulnerability/GHSA-pq67-2wwv-3xjx","summary":"tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File","modified":"2026-09-10T03:50:23.170767408Z","packages":[{"ecosystem":"npm","name":"tar-fs","purl":"pkg:npm/tar-fs","ranges":["<1.16.4"],"fixed":["1.16.4"]},{"ecosystem":"npm","name":"tar-fs","purl":"pkg:npm/tar-fs","ranges":[">=2.0.0 <2.1.2"],"fixed":["2.1.2"]},{"ecosystem":"npm","name":"tar-fs","purl":"pkg:npm/tar-fs","ranges":[">=3.0.0 <3.0.7"],"fixed":["3.0.7"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}