{"id":"UBUNTU-CVE-2026-40024","details":"The Sleuth Kit through 4.14.0 contains a path traversal vulnerability in tsk_recover that allows an attacker to write files to arbitrary locations outside the intended recovery directory via crafted filenames or directory paths with path traversal sequences in a filesystem image. An attacker can craft a malicious filesystem image with embedded /../ sequences in filenames that, when processed by tsk_recover, writes files outside the output directory, potentially achieving code execution by overwriting shell configuration or cron entries.","modified":"2026-05-20T16:25:38.762193940Z","published":"2026-04-08T22:16:00Z","upstream":["CVE-2026-40024"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40024"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40024"},{"type":"REPORT","url":"https://github.com/sleuthkit/sleuthkit/commit/a3f96b3bc36a8bb1a00c297f77110d4a6e7dd31b"},{"type":"REPORT","url":"https://mobasi.ai/sentinel"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/sleuth-kit-tsk-recover-path-traversal"}],"affected":[{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.2.3-2ubuntu1","3.2.3-2ubuntu2","3.2.3-2.1","3.2.3-2.2","3.2.3-2.2ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk3-3","binary_version":"3.2.3-2.2ubuntu0.1~esm1"},{"binary_name":"sleuthkit","binary_version":"3.2.3-2.2ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.1.3-11ubuntu2","4.1.3-12ubuntu1","4.2.0-3","4.2.0-3ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk13","binary_version":"4.2.0-3ubuntu0.1~esm1"},{"binary_name":"sleuthkit","binary_version":"4.2.0-3ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.4.2-1","4.4.2-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk13","binary_version":"4.4.2-3"},{"binary_name":"sleuthkit","binary_version":"4.4.2-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.6.5-1","4.6.7-1","4.6.7-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk13","binary_version":"4.6.7-1build1"},{"binary_version":"4.6.7-1build1","binary_name":"sleuthkit"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.10.1+dfsg-1","4.11.0+dfsg-1","4.11.1+dfsg-1"],"ecosystem_specific":{"binaries":[{"binary_version":"4.11.1+dfsg-1","binary_name":"libtsk19"},{"binary_version":"4.11.1+dfsg-1","binary_name":"sleuthkit"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.12.0+dfsg-1","4.12.1+dfsg-1","4.12.1+dfsg-1.1ubuntu1","4.12.1+dfsg-1.1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.12.1+dfsg-1.1ubuntu2","binary_name":"libtsk19t64"},{"binary_name":"sleuthkit","binary_version":"4.12.1+dfsg-1.1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.12.1+dfsg-1.1ubuntu2","4.12.1+dfsg-3"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk19t64","binary_version":"4.12.1+dfsg-3"},{"binary_name":"sleuthkit","binary_version":"4.12.1+dfsg-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}},{"package":{"name":"sleuthkit","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sleuthkit?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.12.1+dfsg-3","4.12.1+dfsg-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"libtsk19t64","binary_version":"4.12.1+dfsg-3build1"},{"binary_name":"sleuthkit","binary_version":"4.12.1+dfsg-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40024.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}