CVE-2026-35355: uutils coreutils install Arbitrary File Overwrite via Symlink TOCTOU Race

Published Apr 22, 2026
·
Updated

copyfile in install/src/install.rs removes the destination then recreates it by pathname via File::create / fs::copy without OEXCL/createnew. Between the unlink and the recreate, a local attacker with write access to the destination directory can drop in a symlink and redirect the write.

Impact: when install runs privileged into an attacker-writable directory (staging/build paths), the race allows redirecting writes to arbitrary files and overwriting sensitive system files (/etc/passwd, /etc/shadow). Recommendation: create atomically with createnew/OEXCL and copy via the opened fd rather than reopening by path.

Remediation: Acknowledged by Canonical; fixed in commit b5bbabc1.

--- Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.50. Credit: Zellic.

Other sources

The install utility in uutils coreutils is vulnerable to a Time-of-Check to Time-of-Use (TOCTOU) race condition during file installation. The implementation unlinks an existing destination file and then recreates it using a path-based operation without the OEXCL flag. A local attacker can exploit the window between the unlink and the subsequent creation to swap the path with a symbolic link, allowing them to redirect privileged writes to overwrite arbitrary system files.

MITRE

Affected Software

3 affected componentsFixes available
uutils uutils coreutils
uutils Coreutils Rust<0.6.0
rust/uu_install<0.6.0
0.6.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/uu_install to a version that resolves this vulnerability.

    Fixed in 0.6.0
  2. Upgrade

    Upgrade uutils coreutils install to a version that resolves this vulnerability.

    Patch b5bbabc1
  3. Configuration

    Fix the TOCTOU race by creating the destination atomically (create_new / O_EXCL) and copying through the already-opened destination file descriptor, rather than unlinking the destination and recreating it by pathname using File::create / fs::copy without O_EXCL.

    uutils coreutils install (install/src/install.rs copy_file) file creation atomicity (use O_EXCL/create_new and copy via opened fd) = use create_new/O_EXCL for destination and copy via opened file descriptor instead of unlink + path-based recreate

Event History

Apr 22, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 6, 2026
Advisory Published
via GitHub·07:54 PM
Data Sourced
via GitHub·07:54 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-35355?

CVE-2026-35355 is considered a moderate severity vulnerability due to its potential for arbitrary file overwrite.

2

How do I fix CVE-2026-35355?

To fix CVE-2026-35355, update to the latest version of uutils coreutils where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2026-35355?

CVE-2026-35355 is a Time-of-Check to Time-of-Use (TOCTOU) race condition vulnerability affecting the install utility in uutils coreutils.

4

Which versions of uutils coreutils are affected by CVE-2026-35355?

CVE-2026-35355 affects all versions of uutils coreutils prior to the patch included in version 0.6.0.

5

What could be the impact of exploiting CVE-2026-35355?

Exploiting CVE-2026-35355 could allow an attacker to overwrite arbitrary files on the system, potentially leading to data loss or system compromise.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203