{"id":"UBUNTU-CVE-2024-12905","details":"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.","modified":"2026-05-20T16:08:43.458802337Z","published":"2025-03-27T17:15:00Z","upstream":["CVE-2024-12905"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-12905"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-12905"},{"type":"REPORT","url":"https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed"},{"type":"REPORT","url":"https://github.com/mafintosh/tar-fs/commit/a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed"}],"affected":[{"package":{"name":"node-tar-fs","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-tar-fs?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1-2","2.1.1-4","2.1.1-6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1-6","binary_name":"node-tar-fs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12905.json"}},{"package":{"name":"node-tar-fs","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-tar-fs?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1-6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.1-6","binary_name":"node-tar-fs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12905.json"}},{"package":{"name":"node-tar-fs","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/node-tar-fs?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1-6","3.0.8+~cs2.0.4-1","3.0.9+~cs2.0.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.9+~cs2.0.4-1","binary_name":"node-tar-fs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12905.json"}},{"package":{"name":"node-tar-fs","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/node-tar-fs?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.9+~cs2.0.4-1","3.0.9+~cs2.0.4-2","3.1.2+~cs2.0.4-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.1.2+~cs2.0.4-1","binary_name":"node-tar-fs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-12905.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},{"type":"Ubuntu","score":"medium"}]}