CVE-2020-10174
published 2020-03-05CVE-2020-10174: init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift. It…
PriorityP432high7CVSS 3.1
AVLACHPRLUINSUCHIHAH
EPSS
0.28%
20.3th percentile
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
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | ubuntu_linux | — | — |
| debian | timeshift | < timeshift 20.03+ds-1 (bookworm) | timeshift 20.03+ds-1 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| timeshift_project | timeshift | < 20.03 | 20.03 |
| timeshift_project | timeshift | >= 0 < 20.03+ds-1 | 20.03+ds-1 |
| timeshift_project | timeshift | >= 0 < 20.03+ds-1 | 20.03+ds-1 |
| timeshift_project | timeshift | >= 0 < 20.03+ds-1 | 20.03+ds-1 |
| timeshift_project | timeshift | >= 0 < 20.03+ds-1 | 20.03+ds-1 |
CVSS provenance
nvdv3.17.0HIGHCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
nvdv2.06.9MEDIUMAV:L/AC:M/Au:N/C:C/I:C/A:C
osv7.0HIGH
vendor_debian7.0HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Timeshift vulnerability
vendor_ubuntu·2020-03-30
CVE-2020-10174 Timeshift vulnerability
Title: Timeshift vulnerability
Summary: Timeshift could be made to run programs as an administrator.
Matthias Gerstner discovered that Timeshift did not securely create temporary
files. An attacker could exploit a race condition in Timeshift and potentially
execute arbitrary commands as root.
Instructions: In general, a standard system update will make all the necessary changes.
Debian
CVE-2020-10174: timeshift - init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a p...
vendor_debian·2020·CVSS 7.0
CVE-2020-10174 [HIGH] CVE-2020-10174: timeshift - init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a p...
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.
Scope: local
bookworm: resolved (fixed in 20.03+ds-1)
bullseye: resolved (fixed in 20.03+ds-1)
forky: resolved (fixed in 20.03+ds-1)
sid: resolved (fixed in 20.03+ds-1)
trixie: resolv
GHSA
GHSA-mw9g-hwpr-h3rv: init_tmp in TeeJee
ghsa_unreviewed·2022-05-24
CVE-2020-10174 [MEDIUM] CWE-362 GHSA-mw9g-hwpr-h3rv: init_tmp in TeeJee
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.
OSV
CVE-2020-10174: init_tmp in TeeJee
osv·2020-03-05·CVSS 7.0
CVE-2020-10174 [HIGH] CVE-2020-10174: init_tmp in TeeJee
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [epel-7]
bugzilla·2020-03-09·CVSS 7.0
CVE-2020-10174 [HIGH] CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [epel-7]
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [epel-7]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-7.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discus
Bugzilla
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift
bugzilla·2020-03-09·CVSS 7.0
CVE-2020-10174 [HIGH] CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift
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.
References:
https://www.openwall.com/lists/oss-security/2020/0
Bugzilla
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [fedora-all]
bugzilla·2020-03-09·CVSS 7.0
CVE-2020-10174 [HIGH] CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [fedora-all]
CVE-2020-10174 timeshift: Arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
http://www.openwall.com/lists/oss-security/2020/03/06/3https://bugzilla.suse.com/show_bug.cgi?id=1165802https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462https://github.com/teejee2008/timeshift/releases/tag/v20.03https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/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/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/https://usn.ubuntu.com/4312-1/http://www.openwall.com/lists/oss-security/2020/03/06/3https://bugzilla.suse.com/show_bug.cgi?id=1165802https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462https://github.com/teejee2008/timeshift/releases/tag/v20.03https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AAOFXT64CEUMJE3723JDJWTEQWQUCYMD/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/TXXYQFSZ5P6ZMNFIDBAQKBFZIR2T7ZLL/https://usn.ubuntu.com/4312-1/
2020-03-05
Published