Skip to main content

uutils coreutils CVE-2026-35364

| EUVDEUVD-2026-25010 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-04-22 canonical GHSA-m976-87wm-48fm
6.3
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify cross-device mv target path
  2. Delivery
    Gain write access to destination directory
  3. Exploit
    Monitor for mv command execution
  4. Execution
    Inject symbolic link at target path within race window
  5. Persist
    Privileged copy operation follows symlink
  6. Impact
    Overwrite arbitrary protected file

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Exploitation requires write access to the destination directory where the mv operation targets a file. The attacker must trigger or predict a move operation that removes a file at a known path in a writable directory, then inject a symbolic link at that path before the subsequent copy operation recreates it. The vulnerability is triggered only during cross-device move operations (moves between different filesystems where atomic rename fails), which is a non-default scenario-moves within the same filesystem use the kernel's atomic rename and are not vulnerable. If the mv command is run with elevated privileges (e.g., via sudo or as part of a privileged process), the injected symlink allows the attacker to write to files normally protected from their permission level. The attack is not automatable due to the race condition requiring precise timing; however, high-frequency retry loops make exploitation practical in many real-world scenarios, particularly if the destination directory is frequently accessed.

Impact

The CVSS score of 6.3 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H) reflects medium risk with local attack vector, high complexity, and low privilege requirements. The SSVC framework indicates exploitation is possible (poc available), not automatable (requires precise timing and write access to specific directory), and delivers partial technical impact (file overwrite within scope). The mismatch between 'Information Disclosure' tag and CVSS vector (which shows no confidentiality impact but high integrity/availability) suggests the tag may be outdated or misclassified. Real-world risk is MODERATE: exploitation requires local access, coordination of timing (high complexity), and write permissions to a specific directory-not a network-exploitable flaw. However, for systems where mv is run with elevated privileges (via sudo or setuid) and user-writable directories contain target paths, this becomes a local privilege escalation vector. The lack of active exploitation (KEV not listed) and the high complexity requirement limit urgency, but the vulnerability is valid and reproducible. Priority depends on deployment context: low for typical single-user systems, higher for multi-user systems or privilege-escalation chains.

Exploit ScenarioDerived

An attacker on a multi-user system observes that an administrator runs 'sudo mv /tmp/largefile /var/important/newfile' to move a file to a system directory where the attacker lacks write access. The attacker writes a script that continuously creates and deletes a symbolic link at '/var/important/newfile' pointing to a sensitive system file (e.g., '/etc/passwd'). When the timing aligns and the symlink exists at the moment the privileged copy operation tries to recreate the destination, the mv command follows the symlink and overwrites the target file with contents from '/tmp/largefile', corrupting system configuration or enabling further privilege escalation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 23, 2026

A time-of-check to time-of-use (TOCTOU) race condition in the mv utility of uutils coreutils during cross-device move operations allows local attackers with write access to the destination directory to exploit a window between file deletion and recreation, injecting a symbolic link to redirect privileged write operations and overwrite arbitrary files. Exploitation requires moderate attack complexity and local access with limited privileges, but grants the ability to corrupt or modify files beyond the attacker's normal permissions. Publicly available exploit code exists but the vulnerability has not been confirmed in active exploitation.

RemediationAI

Apply the upstream fix from the uutils/coreutils project by updating to the patched release version. The fix involves eliminating or securing the race condition window during cross-device move operations, either by using atomic operations where available or by holding an exclusive lock on the destination directory during the copy-and-recreate sequence. Until patching is possible, mitigate risk by restricting write access to directories that are targets of mv operations, particularly when mv is invoked with elevated privileges (via sudo or setuid). For systems where privilege escalation via this vector is a concern, avoid running mv with privilege escalation in environments where local users have write access to target directories. Additionally, implement filesystem-level monitoring or mandatory access controls to detect or prevent creation of symbolic links in critical destination directories. Note that these workarounds reduce functionality and are not substitutes for patching; apply the vendor fix as soon as available.

Affected Packages

cargo coreutils no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in cargo

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The mv utility in uutils coreutils implements cross-device file operations by removing the destination path and then performing a copy-based recreation. The vulnerability stems from an insecure sequence: the destination is deleted in one operation, followed by a separate copy operation to recreate it at the target location. This creates a race condition window (CWE-367, Time-of-Check to Time-of-Use) where an attacker with write permissions in the destination directory can replace the deleted destination with a symbolic link pointing to an arbitrary file. When the privileged move operation resumes and follows the symlink, it writes the source file contents to the attacker's chosen target, effectively enabling arbitrary file write as a higher-privilege context. The vulnerability is specific to cross-device move operations where the kernel cannot perform an atomic rename, forcing userspace fallback to copy-and-delete semantics.

Know when Coreutils gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.3 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

DescriptionCVE.org

A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the mv utility of uutils coreutils during cross-device operations. The utility removes the destination path before recreating it through a copy operation. A local attacker with write access to the destination directory can exploit this window to replace the destination with a symbolic link. The subsequent privileged move operation will follow the symlink, allowing the attacker to redirect the write and overwrite an arbitrary target file with contents from the source.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:uutils:coreutils:*:*:*:*:*:*:*:*
CVE-2014-9471 HIGH POC
7.5 Jan 16

The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of service (crash) or possibly ex

CVE-2026-35368 HIGH
7.8 Apr 22

Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access

CVE-2026-93658 HIGH
7.3 Sep 18

Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo

CVE-2026-35338 HIGH POC
7.3 Apr 22

Recursive chmod operations can bypass --preserve-root protection in uutils coreutils versions prior to 0.6.0, allowing l

CVE-2026-35341 HIGH POC
7.1 Apr 22

Local privilege escalation in uutils coreutils mkfifo allows authenticated users to downgrade permissions on arbitrary f

CVE-2026-35352 HIGH
7.0 Apr 22

Privilege escalation in uutils coreutils mkfifo utility allows local attackers with low privileges to manipulate file pe

CVE-2026-35349 MEDIUM
6.7 Apr 22

Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi

CVE-2026-35365 MEDIUM
6.6 Apr 22

The mv utility in uutils coreutils improperly expands symbolic links instead of preserving them during moves across file

CVE-2026-35350 MEDIUM
6.6 Apr 22

The cp utility in uutils coreutils improperly preserves setuid and setgid bits when the chown operation fails during fil

CVE-2026-35374 MEDIUM
6.3 Apr 22

The split utility in uutils coreutils contains a time-of-check to time-of-use (TOCTOU) race condition that allows local

CVE-2026-35360 MEDIUM
6.3 Apr 22

The touch utility in uutils coreutils suffers from a Time-of-Check to Time-of-Use (TOCTOU) race condition that allows lo

CVE-2026-35356 MEDIUM
6.3 Apr 22

Privilege escalation via symlink attack in uutils coreutils install utility when using the -D flag allows local attacker

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy