CVE-2026-35360CWE-367

uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition

Medium · published April 22, 2026

CVSS v3.1
6.3
EPSS
0%
Percentile
0.8
In the wild
Unconfirmed
What it is

The touch utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file creation. When the utility identifies a missing path, it later attempts creation using File::create(), which internally uses O_TRUNC. An attacker can exploit this window to create a file or swap a symlink at the target path, causing touch to truncate an existing file and leading to permanent data loss.

The record
Technical detail
CVSS v3.1
6.3 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00100 · 0.8th percentile
Weakness
CWE-367 · Time-of-check Time-of-use (TOCTOU) Race Condition
Published
2026-04-22T16:08Z
EPSS history
Timeline
  • 22 APR 16:08Z
    uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition
    cvelistv5