Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify cross-device mv target path
-
DeliveryGain write access to destination directory
-
ExploitMonitor for mv command execution
-
ExecutionInject symbolic link at target path within race window
-
PersistPrivileged copy operation follows symlink
-
ImpactOverwrite 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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
The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of service (crash) or possibly ex
Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access
Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo
Recursive chmod operations can bypass --preserve-root protection in uutils coreutils versions prior to 0.6.0, allowing l
Local privilege escalation in uutils coreutils mkfifo allows authenticated users to downgrade permissions on arbitrary f
Privilege escalation in uutils coreutils mkfifo utility allows local attackers with low privileges to manipulate file pe
Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi
The mv utility in uutils coreutils improperly expands symbolic links instead of preserving them during moves across file
The cp utility in uutils coreutils improperly preserves setuid and setgid bits when the chown operation fails during fil
The split utility in uutils coreutils contains a time-of-check to time-of-use (TOCTOU) race condition that allows local
The touch utility in uutils coreutils suffers from a Time-of-Check to Time-of-Use (TOCTOU) race condition that allows lo
Privilege escalation via symlink attack in uutils coreutils install utility when using the -D flag allows local attacker
EUVD-2026-25010
GHSA-m976-87wm-48fm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB