{"id":"CVE-2024-12905","state":"PUBLISHED","title":"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","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.","publishedAt":"2025-03-27T16:25:34.410Z","updatedAt":"2025-11-03T19:29:11.810Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"seal"},"assigner":"seal","products":["tar-fs"],"affected":[{"packageName":"tar-fs","defaultStatus":"unaffected","versions":[{"version":"0.0.0","status":"affected","lessThan":"1.16.4","changes":[{"at":"1.16.4","status":"unaffected"}],"versionType":"semver"},{"version":"2.0.0","status":"affected","lessThan":"2.1.2","changes":[{"at":"2.1.2","status":"unaffected"}],"versionType":"semver"},{"version":"3.0.0","status":"affected","lessThan":"3.0.8","changes":[{"at":"3.0.8","status":"unaffected"}],"versionType":"semver"}],"collectionURL":"https://registry.npmjs.org","programFiles":["index.js"],"repo":"https://github.com/mafintosh/tar-fs"}],"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"],"weaknesses":["CWE-59","CWE-22"],"ingestedAt":"2026-10-29T20:06:50.777Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/12xxx/CVE-2024-12905.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-12905","state":"PUBLISHED","datePublished":"2025-03-27T16:25:34.410Z","dateUpdated":"2025-11-03T19:29:11.810Z","assignerShortName":"seal","assignerOrgId":"22e2d327-25fe-45d7-9f0c-dcd23b7108df","dateReserved":"2024-12-23T13:53:01.494Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"packageName":"tar-fs","defaultStatus":"unaffected","versions":[{"version":"0.0.0","status":"affected","lessThan":"1.16.4","changes":[{"at":"1.16.4","status":"unaffected"}],"versionType":"semver"},{"version":"2.0.0","status":"affected","lessThan":"2.1.2","changes":[{"at":"2.1.2","status":"unaffected"}],"versionType":"semver"},{"version":"3.0.0","status":"affected","lessThan":"3.0.8","changes":[{"at":"3.0.8","status":"unaffected"}],"versionType":"semver"}],"collectionURL":"https://registry.npmjs.org","programFiles":["index.js"],"repo":"https://github.com/mafintosh/tar-fs"}],"references":[{"url":"https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed","tags":["patch"]},{"url":"https://www.seal.security/blog/a-link-to-the-past-uncovering-a-new-vulnerability-in-tar-fs","tags":["technical-description"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-59","description":"CWE-59 Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-22","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"seal","orgId":"22e2d327-25fe-45d7-9f0c-dcd23b7108df","dateUpdated":"2025-04-20T15:42:44.814Z"},"credits":[{"lang":"en","type":"finder","value":"@bnbdr"}],"impacts":[{"capecId":"CAPEC-132","descriptions":[{"lang":"en","value":"CAPEC-132 Symlink Attack"}]},{"capecId":"CAPEC-126","descriptions":[{"lang":"en","value":"CAPEC-126 Path Traversal"}]}],"source":{"discovery":"EXTERNAL"},"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-03-27T18:21:53.061002Z","id":"CVE-2024-12905","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-27T18:25:53.445Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:29:11.810Z"}}]}}}