{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-12905","id":"CVE-2024-12905","title":"tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File","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 a","descriptionLong":"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.","published":"2025-03-27T16:25:34.410Z","updated":"2026-10-28T02:30:31.497260108Z","reserved":"2024-12-23T13:53:01.494Z","status":"Deferred","rejected":false,"assigner":"seal","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"seal"},"metrics":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"seal"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"22e2d327-25fe-45d7-9f0c-dcd23b7108df"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["tar-fs"],"affectedProducts":[{"vendor":"","product":"tar-fs","defaultStatus":"unaffected","versions":[{"changes":[{"at":"1.16.4","status":"unaffected"}],"lessThan":"1.16.4","status":"affected","version":"0.0.0","versionType":"semver"},{"changes":[{"at":"2.1.2","status":"unaffected"}],"lessThan":"2.1.2","status":"affected","version":"2.0.0","versionType":"semver"},{"changes":[{"at":"3.0.8","status":"unaffected"}],"lessThan":"3.0.8","status":"affected","version":"3.0.0","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"tar-fs","purl":"pkg:npm/tar-fs","ranges":["<1.16.4",">=2.0.0 <2.1.2",">=3.0.0 <3.0.7"],"fixed":["1.16.4","2.1.2","3.0.7"],"advisory":"GHSA-pq67-2wwv-3xjx"}],"cwes":["CWE-59","CWE-22"],"aliases":["GHSA-pq67-2wwv-3xjx"],"references":[{"url":"https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed","tags":["patch","fix","web"]},{"url":"https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs","tags":["technical-description","article","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html","tags":["web"]},{"url":"https://registry.npmjs.org","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/12xxx/CVE-2024-12905.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12905","tags":["advisory"]},{"url":"https://github.com/mafintosh/tar-fs","tags":["package"]},{"url":"https://arxiv.org/abs/2506.04962","tags":["web"]},{"url":"https://arxiv.org/pdf/2506.04962","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.02299,"epssPercentile":0.83664,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-12905","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12905","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-12905","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-pq67-2wwv-3xjx","ok":true,"note":"GHSA-pq67-2wwv-3xjx"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-12905","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}