CVE-2026-35354

uutils coreutils mv Security Xattr TOCTOU Race in Cross-Device

Published Apr 22, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mv utility of uutils coreutils during cross-device moves. The extended attribute (xattr) preservation logic uses multiple path-based system calls that perform fresh path-to-inode lookups for each operation. A local attacker with write access to the directory can exploit this race to swap files between calls, causing the destination file to receive an inconsistent mix of security xattrs, such as SELinux labels or file capabilities.

Analysis

AI-generated

Technical impact

The mv utility in uutils coreutils contains a Time‑of‑Check to Time‑of‑Use race that allows a local attacker with write access to a directory to swap files during a cross‑device move. The bug causes the destination file to receive an inconsistent mix of extended attributes such as SELinux labels or file capabilities. This flaw is a classic TOCTOU problem (CWE‑367), which can enable privilege escalation or bypass of security controls by tampering with these attributes.

Affected Systems

All releases of the uutils coreutils mv command are potentially affected. No specific version range is provided, so any installed instance should be treated as vulnerable until an official patch or update is available.

Risk and Exploitability

The CVSS score of 4.7 indicates moderate severity, and the EPSS score is 0.0001, indicating a very low exploitation probability; the vulnerability is not listed in the CISA KEV catalog. Exploitation requires a local attacker who can write to the directory involved in the cross‑device move. If such access exists, the attacker can swap files during the move, resulting in the destination file inheriting a mixed set of security attributes that may allow unauthorized access or execute actions with elevated privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest uutils coreutils update or the vendor‑supplied patch that fixes the TOCTOU race condition.
  • If an update is not immediately available, restrict write permissions on the involved directories to prevent local attackers from modifying the target during the move.
  • Enable auditing or logging of extended attribute changes to detect unexpected mixes and review logs regularly.

Generated by OpenCVE AI on April 28, 2026 at 15:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x4mc-mqm7-gg39 uutils coreutils has a Time-of-Check to 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': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the mv utility of uutils coreutils during cross-device moves. The extended attribute (xattr) preservation logic uses multiple path-based system calls that perform fresh path-to-inode lookups for each operation. A local attacker with write access to the directory can exploit this race to swap files between calls, causing the destination file to receive an inconsistent mix of security xattrs, such as SELinux labels or file capabilities.
Title uutils coreutils mv Security Xattr TOCTOU Race in Cross-Device
Weaknesses CWE-367
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-367

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

Sources

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