CVE-2026-35362

uutils coreutils Missing TOCTOU Protection on Non-Linux Unix Platforms in Safe Traversal Module

Published Apr 22, 2026 CVSS 3.1 · 3.6 Low EPSS < 1% KEV · Not listed
Description
The safe_traversal module in uutils coreutils, which provides protection against Time-of-Check to Time-of-Use (TOCTOU) symlink races using file-descriptor-relative syscalls, is incorrectly limited to Linux targets. On other Unix-like systems such as macOS and FreeBSD, the utility fails to utilize these protections, leaving directory traversal operations vulnerable to symlink race conditions.

Analysis

AI-generated

Technical impact

The safe_traversal module in uutils coreutils is designed to guard against Time‑of‑Check to Time‑of‑Use (TOCTOU) symlink races by using file‑descriptor‑relative system calls; however, the protection is hard‑coded to activate only on Linux. On macOS, FreeBSD and other Unix‑like systems the guard is bypassed, leaving directory traversal operations susceptible to a symlink race. This flaw falls under CWE‑367. While it does not directly enable code execution or privilege escalation, an attacker can replace a target file with a malicious symlink between the check and use phases, allowing unauthorized modification, deletion, or injection of files and potentially exposing sensitive data or causing denial of service.

Affected Systems

uutils coreutils is an open‑source Rust implementation of GNU Coreutils. The safe_traversal module that protects against TOCTOU symlink races works only on Linux. On macOS, FreeBSD, and other Unix‑like systems the module falls back to non‑protected logic, exposing directory traversal operations to symlink race conditions. All releases of uutils coreutils before 0.6.0 exhibit this flaw on those platforms; 0.6.0 and later restore protection. The affected software is deployed on any Unix‑like host that runs the vulnerable command‑line utilities from uutils, which may include servers, build environments, or end‑user systems.

Risk and Exploitability

The CVSS score of 3.6 indicates low to moderate severity. The EPSS score of <1% denotes a very low likelihood of exploitation. The vulnerability is not listed in CISA’s KEV catalog, so no confirmed widespread exploitation is reported. Exploitation would require the attacker to influence the file system at the time the vulnerable command runs, such as substituting a target file with a malicious symlink during the race window. This could allow unauthorized modification, deletion, or injection of files, potentially exposing sensitive data or causing denial of service. The most plausible attack vector is local or remote‑directed, but the need for precise timing and the low EPSS score reduce the practical risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade uutils coreutils to version 0.6.0 or later to restore TOCTOU protection on non‑Linux platforms.
  • If an immediate upgrade is not feasible, limit the use of vulnerable commands to directories that are not writable by untrusted users; consider moving critical operations to a root‑owned or immutable filesystem.
  • Implement monitoring or intrusion detection to watch for unexpected symlink creation in critical directories, and apply file‑system quarantine policies to detect and mitigate race conditions.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-ggc5-46rg-mr4v uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition
Github GHSA Github GHSA GHSA-w6xc-g9qj-vp32 uucore: safe_traversal TOCTOU protection only enabled on Linux
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 The safe_traversal module in uutils coreutils, which provides protection against Time-of-Check to Time-of-Use (TOCTOU) symlink races using file-descriptor-relative syscalls, is incorrectly limited to Linux targets. On other Unix-like systems such as macOS and FreeBSD, the utility fails to utilize these protections, leaving directory traversal operations vulnerable to symlink race conditions.
Title uutils coreutils Missing TOCTOU Protection on Non-Linux Unix Platforms in Safe Traversal Module
Weaknesses CWE-367
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-367

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

Sources

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