{"api_version":"1","generated_at":"2026-07-23T08:13:22+00:00","cve":"CVE-2020-10174","urls":{"html":"https://cve.report/CVE-2020-10174","api":"https://cve.report/api/cve/CVE-2020-10174.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2020-10174","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2020-10174"},"summary":{"title":"CVE-2020-10174","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2020-03-05 16:15:00","updated_at":"2023-11-07 03:14:00"},"problem_types":["CWE-362","CWE-59"],"metrics":[],"references":[{"url":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","name":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","refsource":"MISC","tags":["Release Notes","Third Party Advisory"],"title":"Release v20.03 · teejee2008/timeshift · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://usn.ubuntu.com/4312-1/","name":"USN-4312-1","refsource":"UBUNTU","tags":[],"title":"USN-4312-1: Timeshift vulnerability | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","name":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","refsource":"MISC","tags":["Issue Tracking","Third Party Advisory"],"title":"Bug 1165802 – VUL-0: CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","name":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Change TEMP_DIR permissions and path; Cleanup on exit; · teejee2008/timeshift@335b3d5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/","name":"FEDORA-2020-1050d60507","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 30 Update: timeshift-20.03-1.fc30 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/","name":"FEDORA-2020-6b3ae09449","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 31 Update: timeshift-20.03-1.fc31 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/","name":"FEDORA-2020-c18248f61a","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 32 Update: timeshift-20.03-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/","name":"FEDORA-2020-c18248f61a","refsource":"","tags":[],"title":"[SECURITY] Fedora 32 Update: timeshift-20.03-1.fc32 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/","name":"FEDORA-2020-6b3ae09449","refsource":"","tags":[],"title":"[SECURITY] Fedora 31 Update: timeshift-20.03-1.fc31 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"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","refsource":"MLIST","tags":["Third Party Advisory"],"title":"oss-security - CVE-2020-10174: timeshift: arbitrary local code execution due to\n unsafe usage of temporary directory in /tmp/timeshift","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/","name":"FEDORA-2020-1050d60507","refsource":"","tags":[],"title":"[SECURITY] Fedora 30 Update: timeshift-20.03-1.fc30 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-10174","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10174","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"19.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"30","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"31","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"32","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"timeshift_project","cpe5":"timeshift","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2020","cve_id":"10174","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"timeshift_project","cpe5":"timeshift","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1165802","refsource":"MISC","name":"https://bugzilla.suse.com/show_bug.cgi?id=1165802"},{"url":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462","refsource":"MISC","name":"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462"},{"url":"https://github.com/teejee2008/timeshift/releases/tag/v20.03","refsource":"MISC","name":"https://github.com/teejee2008/timeshift/releases/tag/v20.03"},{"refsource":"MLIST","name":"[oss-security] 20200306 CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift","url":"http://www.openwall.com/lists/oss-security/2020/03/06/3"},{"refsource":"FEDORA","name":"FEDORA-2020-c18248f61a","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/"},{"refsource":"FEDORA","name":"FEDORA-2020-6b3ae09449","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SXDEPC52G46U6I7GLQNFLZXVSM7V2HYY/"},{"refsource":"FEDORA","name":"FEDORA-2020-1050d60507","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/"},{"refsource":"UBUNTU","name":"USN-4312-1","url":"https://usn.ubuntu.com/4312-1/"}]}},"nvd":{"publishedDate":"2020-03-05 16:15:00","lastModifiedDate":"2023-11-07 03:14:00","problem_types":["CWE-362","CWE-59"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"},"exploitabilityScore":1,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:M/Au:N/C:C/I:C/A:C","accessVector":"LOCAL","accessComplexity":"MEDIUM","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE","baseScore":6.9},"severity":"MEDIUM","exploitabilityScore":3.4,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:timeshift_project:timeshift:*:*:*:*:*:*:*:*","versionEndExcluding":"20.03","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2020","CveId":"10174","Ordinal":"170582","Title":"CVE-2020-10174","CVE":"CVE-2020-10174","Year":"2020"},"notes":[{"CveYear":"2020","CveId":"10174","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2020","CveId":"10174","Ordinal":"2","NoteData":"2020-03-05","Type":"Other","Title":"Published"},{"CveYear":"2020","CveId":"10174","Ordinal":"3","NoteData":"2020-04-01","Type":"Other","Title":"Modified"}]}}}