Skip to main content

uutils coreutils CVE-2026-35376

| EUVDEUVD-2026-25028 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-04-22 canonical
4.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Local user gains write access to target directory
  2. Delivery
    Monitor chcon recursive traversal
  3. Exploit
    Inject symlink or rename file during traversal
  4. Install
    chcon validates original target path
  5. C2
    chcon applies label to symlink target or renamed file
  6. Execute
    Unintended file security context modified
  7. Impact
    SELinux policy enforcement compromised

Vulnerability Assessment

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

Exploitation requires the following specific conditions: (1) the attacker must have write access to a directory tree being subjected to a recursive chcon operation; (2) the chcon command must be executed by a process with higher privileges than the attacker (typically root); (3) the attacker must be able to inject a symbolic link or rename files within the target directory tree during the narrow window between path validation and label application; (4) the chcon utility version must be earlier than 0.8.0. The attack is limited by the unpredictability of the race condition window-successful exploitation requires winning a timing race and is not reliably automatable. Default SELinux administrative workflows that restrict write access to directories being relabeled significantly reduce exploitability.

Impact

This vulnerability presents low-to-moderate real-world risk despite its moderate CVSS score of 4.5. The SSVC decision framework assessment (Exploitation: none, Automatable: no, Technical Impact: partial) aligns with the CVSS rating and indicates this is not a priority emergency. While the attack vector is local (AV:L) and requires low-level privileges (PR:L), the high attack complexity (AC:H) significantly restricts practical exploitation-an attacker must win a timing-sensitive race condition, which is notoriously unreliable and difficult to weaponize reliably. The CISA SSVC framework explicitly marks exploitation as 'none,' meaning there is no confirmed active exploitation or well-documented proof-of-concept demonstrating reliable weaponization. The technical impact is partial rather than complete, limiting blast radius to security label modifications rather than full system compromise. Environments where unprivileged users have write access to directories being recursively relabeled by privileged processes are relatively uncommon. This is a genuine vulnerability that requires patching in security-sensitive deployments, but it does not warrant emergency response procedures typical of critical remote code execution flaws.

Exploit ScenarioDerived

A local user with write access to a shared directory being recursively relabeled by root via chcon -R monitors the filesystem for the moment when the chcon process checks a symbolic link within that directory. The attacker quickly creates a symbolic link pointing to a sensitive system file (e.g., /etc/security/selinux/contexts/file_contexts) before the relabeling operation is applied. If the timing aligns, the security label modification is applied to the symlink target instead of the intended directory, potentially altering SELinux policy enforcement.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 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

Time-of-Check to Time-of-Use (TOCTOU) race condition in the chcon utility of uutils coreutils allows local attackers with directory write access to redirect recursive security label operations to unintended files or directories via symbolic link or rename races, potentially compromising SELinux security controls. The vulnerability affects versions prior to 0.8.0 and requires low privileges and high attack complexity to exploit, making it a moderate-severity issue with partial technical impact.

RemediationAI

Vendor-released patch: upgrade uutils coreutils to version 0.8.0 or later. The patch addresses the TOCTOU vulnerability by implementing file descriptor anchoring during recursive traversal operations. Organizations using uutils coreutils should prioritize this upgrade in their next maintenance cycle, particularly if running chcon commands with elevated privileges on shared or untrusted file systems. Interim workarounds while patching is pending include restricting write access to directories being recursively relabeled (tighten directory permissions prior to chcon execution), avoiding recursive (-R) chcon operations on directories with untrusted write access, or temporarily disabling unprivileged user write access to target directories during privileged chcon operations-though these workarounds degrade administrative flexibility and are not long-term solutions.

Affected VersionsENISA

coreutils 0 <0.8.0

Affected Packages

cargo coreutils fix: 0.8.0

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 chcon utility is responsible for changing SELinux security context labels on files and directories. The vulnerability stems from how recursive operations resolve target paths using fresh path lookups via fts_accpath instead of maintaining file descriptor anchors throughout the traversal. This implementation pattern is susceptible to Time-of-Check to Time-of-Use (TOCTOU) race conditions as defined in CWE-367, where the state of a resource (file system path) can change between the moment it is checked and the moment the privileged operation is applied. An attacker with write access to the directory tree being traversed can exploit the window between path validation and label application by performing symbolic link injection or renaming operations, causing the security label modifications to be applied to files other than the originally intended targets.

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 4.5 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

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
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch released
Apr 22, 2026 - 16:31 nvd
Patch available
CVE Published
Apr 22, 2026 - 16:09 nvd
MEDIUM 4.5

DescriptionCVE.org

A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the chcon utility of uutils coreutils during recursive operations. The implementation resolves recursive targets using a fresh path lookup (via fts_accpath) rather than binding the traversal and label application to the specific directory state encountered during traversal. Because these operations are not anchored to file descriptors, a local attacker with write access to a directory tree can exploit timing-sensitive rename or symbolic link races to redirect a privileged recursive relabeling operation to unintended files or directories. This vulnerability breaks the hardening expectations for SELinux administration workflows and can lead to the unauthorized modification of security labels on sensitive system objects.

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 Yes
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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

22
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +22
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.

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-35364 MEDIUM
6.3 Apr 22

A time-of-check to time-of-use (TOCTOU) race condition in the mv utility of uutils coreutils during cross-device move op

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

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