CVE-2026-35360

uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition

Published Apr 22, 2026 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The touch command in uutils coreutils can truncate an existing file when a Time‑of‑Check to Time‑of‑Use (TOCTOU) race condition occurs. During file creation, the utility verifies that the target path is missing and later calls File::create(), which internally uses O_TRUNC. An attacker can exploit the window between the check and the use by creating or switching a symbolic link at the target path, causing the touch command to truncate an existing file and permanently erase its data. This weakness corresponds to CWE‑367 and can lead to irreversible loss of critical information.

Affected Systems

The affected product is uutils coreutils. No specific version information is supplied, so all releases that include the touch utility are potentially vulnerable until a patch is released.

Risk and Exploitability

The CVSS score of 6.3 and an EPSS score of less than 1% indicate medium severity and a low probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is inferred to be local or privileged service execution where the attacker can influence file creation paths. Based on the description, an attacker with write permission to the target directory can create or swap a symlink at the race window, leading to the accidental truncation of an existing file. Because no publicly available patch exists, the risk remains until a fix is applied or mitigated by restrictive permissions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated release of uutils coreutils that addresses the TOCTOU race condition once it becomes available.
  • Restrict write permissions on directories frequently accessed by the touch command so that only authorized users can create or replace files there.
  • Configure the filesystem or use ACLs to prevent ordinary users from creating or modifying symlinks that resolve to critical files.
  • Implement file integrity monitoring so that unexpected truncation or changes to important files are rapidly detected and logged.

Generated by OpenCVE AI on April 28, 2026 at 08:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q6m9-xj2w-xmrc uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition
Ubuntu USN Ubuntu USN USN-9041-1 uutils coreutils vulnerabilities
History
Type Values Removed Values Added
First Time appeared Uutils
Uutils coreutils
CPEs cpe:2.3:a:uutils:coreutils:-:*:*:*:*:rust:*:*
Vendors & Products Uutils
Uutils coreutils
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title uutils coreutils touch Arbitrary File Truncation via TOCTOU Race Condition
Weaknesses CWE-367
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Apr 22, 2026, 6:03 PM
Reserved
Apr 2, 2026, 12:58 PM
Status
Analyzed
Published
Apr 22, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM