CVE-2020-10174
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-10174 affects Timeshift versions before 20.03, a system restore utility for Linux. The vulnerability was discovered by Matthias Gerstner during a security review and was disclosed on March 4, 2020. The issue lies in the init_tmp function in TeeJee.FileSystem.vala, which unsafely reuses a preexisting temporary directory in the predictable location /tmp/timeshift (OSS Security, SUSE Bug).

Technical details

The vulnerability stems from the TEMP_DIR path variable being set with a predictable prefix (/tmp/timeshift/) followed by a random string. The application does not verify the trustworthiness of pre-existing /tmp/timeshift directories or check if they are symlinks. When Timeshift runs, it creates a temporary directory and executes scripts under this location with root privileges. The issue has been present since version 17.2 and was fixed in version 20.03 (OSS Security).

Impact

If exploited, this vulnerability allows an unprivileged local attacker to execute arbitrary code with full root privileges. The vulnerability is triggered whenever Timeshift runs, regardless of the command-line arguments used (CVE Mitre).

Mitigation and workarounds

The vulnerability was fixed in Timeshift version 20.03 by removing the predictable prefix from the TEMP_DIR path and changing the temporary directory permissions to mode 0750 to prevent other users from accessing sensitive temporary data. Users should upgrade to version 20.03 or later. Various distributions have released security updates, including Ubuntu 19.10 (19.01+ds-2ubuntu0.1) and Fedora 30-32 (Ubuntu Notice, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-20807MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20806MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20805MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20804MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026
CVE-2025-20803MEDIUM6.7
  • NixOSNixOS
  • android
NoNoJan 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management