CVE-2020-10174 Race condition in n/a

High 7.0 Published Updated

An attacker can exploit a race condition in Timeshift to execute arbitrary scripts with root privileges by manipulating temporary directories.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-10174?

CVE-2020-10174 is a high-severity vulnerability in Canonical Ubuntu Linux, published on 5 Mar 2020. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-59, CWE-362

Which versions are affected by CVE-2020-10174?

It affects 3 products.

Products include Canonical Ubuntu Linux, Fedoraproject Fedora, Timeshift Project Timeshift.

How do I fix CVE-2020-10174?

Upgrade to a fixed version.

Is CVE-2020-10174 being exploited?

There is no known exploitation of CVE-2020-10174 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-10174, GHSA-mw9g-hwpr-h3rv.

Is CVE-2020-10174 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free