Loading...
Skip to main content

CVE-2026-35355 — Vulnerability in uu_install — CVE Details

MEDIUM

install: TOCTOU symlink race (unlink-then-create without O_EXCL) allows arbitrary file overwrite

Published July 6, 2026Updated July 6, 2026Source: osv

Summary

`copy_file` in `install/src/install.rs` removes the destination then recreates it by pathname via `File::create` / `fs::copy` without `O_EXCL`/`create_new`. 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 `create_new`/`O_EXCL` 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._

Advisory Timeline

  • First published July 6, 2026 (98 days ago).
  • Last revised July 6, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update uu_install to 0.6.0 or later
cargo update -p uu_install --precise 0.6.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageEcosystemAffectedFixed In
uu_install
crates.io
All versions0.6.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 6.3 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Frequently Asked Questions

What is CVE-2026-35355?
install: TOCTOU symlink race (unlink-then-create without O_EXCL) allows arbitrary file overwrite This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.3/10).
How do I check if my project is affected by CVE-2026-35355?
CVE-2026-35355 affects uu_install. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-35355 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
6.3

Exploitation requires specific conditions or has limited impact. Remediate within weeks.

Also Known As

GHSA-239g-2685-54x3

Related CVEs

  • CVE-2026-102821
    MEDIUM

    Russh: Unbounded memory exhaustion via CHANNEL_OPEN flood during a client-stalled rekey

  • CVE-2026-102820
    MEDIUM

    pageant: Out-of-bounds read / oversized allocation in `pageant` MemoryMap::read via a malicious Pageant agent (Windows)

  • CVE-2026-35356
    MEDIUM

    install -D: symlink race in directory creation allows arbitrary file overwrite

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies