Race Condition Affecting timeshift package, versions <19.01+ds-2ubuntu0.1


Severity

Recommended
0.0
high
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.28% (20th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1910-TIMESHIFT-583784
  • published7 Mar 2020
  • disclosed5 Mar 2020

Introduced: 5 Mar 2020

CVE-2020-10174  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

Upgrade Ubuntu:19.10 timeshift to version 19.01+ds-2ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream timeshift package and not the timeshift package as distributed by Ubuntu. See How to fix? for Ubuntu:19.10 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1