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.
Published: 2026-04-22
Score: 3.3 Low
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized Directory Access
Action: Apply Patch
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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
History

Mon, 27 Apr 2026 12:30:00 +0000

Type Values Removed Values Added
First Time appeared Uutils
Uutils coreutils
CPEs cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*
Vendors & Products Uutils
Uutils coreutils

Wed, 22 Apr 2026 18:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Apr 2026 16:30:00 +0000

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'}


Subscriptions

Uutils Coreutils
cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-04-22T17:49:45.259Z

Reserved: 2026-04-02T12:58:56.087Z

Link: CVE-2026-35353

cve-icon Vulnrichment

Updated: 2026-04-22T17:40:52.211Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-22T17:16:37.723

Modified: 2026-04-27T12:27:39.040

Link: CVE-2026-35353

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-28T08:15:23Z

Weaknesses