CVE-2020-10174
init_tmp in TeeJee.FileSystem.vala in Timeshift before 20.03 unsafely reuses a preexisting temporary directory in the predictable location…
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.0 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.28% · top 79% of all CVEs (5 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.0.
Weakness
Affected products
n/a
- affected n/a
References (8)
- https://bugzilla.suse.com/show_bug.cgi?id=1165802 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/teejee2008/timeshift/releases/tag/v20.03 (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20200306 CVE-2020-10174: timeshift: arbitrary local code execution due to unsafe usage of temporary directory in /tmp/timeshift (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- FEDORA-2020-c18248f61a (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-6b3ae09449 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2020-1050d60507 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- USN-4312-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2020-10174)Record last updated .