CVE-2026-35353

uutils coreutils mkdir Permission Exposure Race Condition with -m

Published Apr 22, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
Description
The mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived permissions (typically 0755) before subsequently changing them to the requested mode via a separate chmod system call. In multi-user environments, this introduces a brief window where a directory intended to be private is accessible to other users, potentially leading to unauthorized data access.

Analysis

AI-generated

Technical impact

The mkdir utility in uutils coreutils has a race condition that temporarily applies umask-derived permissions when the -m flag is used. A directory that should be private is briefly accessible to other users before chmod sets the intended mode. This flaw can allow a local attacker on the same system to read data during the brief window, compromising confidentiality but not integrity or availability. The underlying weakness is a race condition (CWE‑367).

Affected Systems

The issue affects the uutils coreutils package. No specific version range is listed in the CNA data, so the vulnerability could exist in any release before the fix. Users should verify they are running the latest available release.

Risk and Exploitability

The CVSS score of 3.3 indicates low severity. The EPSS score is less than 1%, suggesting a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a local user on a multi‑user system that creates a directory with the -m option during the brief race window.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update uutils coreutils to the latest version (0.6.0 or newer) where the race condition is fixed.
  • When creating directories in shared environments, avoid using the -m option; create the directory first and then apply permissions with chmod in a single more controlled step.
  • Adjust the system umask to 700 before invoking mkdir so that the temporary directory is only readable by the owner during the race window.

Generated by OpenCVE AI on April 28, 2026 at 08:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vf87-345h-9qhx uutils coreutils has a Time-of-check Time-of-use (TOCTOU) Race Condition
Github GHSA Github GHSA GHSA-mj6p-44ch-cq69 mkdir: -m exposes directory with umask perms before chmod (race window)
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 mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived permissions (typically 0755) before subsequently changing them to the requested mode via a separate chmod system call. In multi-user environments, this introduces a brief window where a directory intended to be private is accessible to other users, potentially leading to unauthorized data access.
Title uutils coreutils mkdir Permission Exposure Race Condition with -m
Weaknesses CWE-367
References
Metrics cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/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:49 PM
Reserved
Apr 2, 2026, 12:58 PM
Status
Analyzed
Published
Apr 22, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM