{"id":"CVE-2020-10174","state":"PUBLISHED","title":"init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift. It follows symlinks in th","description":"init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift. It follows symlinks in this location or uses directories owned by unprivileged users. Because Timeshift also executes scripts under this location, an attacker can attempt to win a race condition to replace scripts created by Timeshift with attacker-controlled scripts. Upon success, an attacker-controlled script is executed with full root privileges. This logic is practically always triggered when Timeshift runs regardless of the command-line arguments used.","publishedAt":"2020-03-05T15:28:55.000Z","updatedAt":"2024-08-04T10:50:57.827Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://bugzilla.suse.com/show_bug.cgi?id=1165802","https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","https://github.com/teejee2008/timeshift/releases/tag/v20.03","http://www.openwall.com/lists/oss-security/2020/03/06/3","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/","https://usn.ubuntu.com/4312-1/"],"weaknesses":[],"ingestedAt":"2026-10-29T19:46:21.897Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2020/10xxx/CVE-2020-10174.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2020-10174","state":"PUBLISHED","datePublished":"2020-03-05T15:28:55.000Z","dateUpdated":"2024-08-04T10:50:57.827Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2020-03-05T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift. It follows symlinks in this location or uses directories owned by unprivileged users. Because Timeshift also executes scripts under this location, an attacker can attempt to win a race condition to replace scripts created by Timeshift with attacker-controlled scripts. Upon success, an attacker-controlled script is executed with full root privileges. This logic is practically always triggered when Timeshift runs regardless of the command-line arguments used."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","tags":["x_refsource_MISC"]},{"url":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","tags":["x_refsource_MISC"]},{"url":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/06/3","name":"[oss-security] 20200306 CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/","name":"FEDORA-2020-c18248f61a","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/","name":"FEDORA-2020-6b3ae09449","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/","name":"FEDORA-2020-1050d60507","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://usn.ubuntu.com/4312-1/","name":"USN-4312-1","tags":["vendor-advisory","x_refsource_UBUNTU"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2020-04-01T21:06:04.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2020-10174","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift. It follows symlinks in this location or uses directories owned by unprivileged users. Because Timeshift also executes scripts under this location, an attacker can attempt to win a race condition to replace scripts created by Timeshift with attacker-controlled scripts. Upon success, an attacker-controlled script is executed with full root privileges. This logic is practically always triggered when Timeshift runs regardless of the command-line arguments used."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","refsource":"MISC","url":"https://bugzilla.suse.com/show_bug.cgi?id=1165802"},{"name":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","refsource":"MISC","url":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462"},{"name":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","refsource":"MISC","url":"https://github.com/teejee2008/timeshift/releases/tag/v20.03"},{"name":"[oss-security] 20200306 CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2020/03/06/3"},{"name":"FEDORA-2020-c18248f61a","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/"},{"name":"FEDORA-2020-6b3ae09449","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/"},{"name":"FEDORA-2020-1050d60507","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/"},{"name":"USN-4312-1","refsource":"UBUNTU","url":"https://usn.ubuntu.com/4312-1/"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/06/3","name":"[oss-security] 20200306 CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/","name":"FEDORA-2020-c18248f61a","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/","name":"FEDORA-2020-6b3ae09449","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/","name":"FEDORA-2020-1050d60507","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://usn.ubuntu.com/4312-1/","name":"USN-4312-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T10:50:57.827Z"}}]}}}