Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-10174
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 10:43 UTC · Revision 1
Source evidence
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
Complete source record
{
"id": "044eacbdabcd792b0aa57c190d631ff26e39521b008e9da58fb248c84c296b70",
"url": "https://osv.dev/vulnerability/CVE-2020-10174",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-10174",
"summary": "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.",
"evidence": "osv:CVE-2020-10174",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-10174",
"aliases": [
"CVE-2020-10174"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/teejee2008/timeshift",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "cecd294dcaea9bcf282865268dc6667fbeeeddb3"
},
{
"fixed": "335b3d5398079278b8f7094c77bfd148b315b462"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:timeshift_project:timeshift:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "20.03"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "335b3d5398079278b8f7094c77bfd148b315b462"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "cecd294dcaea9bcf282865268dc6667fbeeeddb3"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v20.03"
}
]
}
}
],
"versions": [
"v19.08.1",
"v19.01",
"v18.9.1",
"v18.9",
"v18.8",
"v18.6.1",
"v18.6",
"v18.4",
"v18.2",
"v18.1.1",
"v18.1",
"v17.11",
"v17.10",
"v17.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-10174.json"
}
}
],
"modified": "2026-10-20T10:51:34.584868103Z",
"provider": "osv",
"references": [
"https://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://github.com/teejee2008/timeshift/releases/tag/v20.03",
"https://usn.ubuntu.com/4312-1/",
"https://bugzilla.suse.com/show_bug.cgi?id=1165802",
"https://github.com/teejee2008/timeshift/commit/335b3d5398079278b8f7094c77bfd148b315b462"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:canonical:ubuntu_linux:19.10:*:*:*:*:*:*:*"
],
"vendor_product": "canonical:ubuntu_linux",
"extracted_events": [
{
"range": [
{
"introduced": "19.10"
},
{
"last_affected": "19.10"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "30"
},
{
"last_affected": "30"
},
{
"introduced": "31"
},
{
"last_affected": "31"
},
{
"introduced": "32"
},
{
"last_affected": "32"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-10174",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 382585,
"published_at": "2020-03-05T16:15:11.94+00:00"
}