GitHub Advisoryadvisory · crates.io

GHSA-mj6p-44ch-cq69 mkdir: -m exposes directory with umask perms before chmod (race window)

LOW Published 2026-07-06 Modified 2026-07-06 Official page ↗
Aliases
CVE-2026-35353
Ecosystem
crates.io
Packages
uu_mkdir
Severity
Low
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Weaknesses
CWE-362, CWE-367, CWE-732
Reviewed
2026-07-06

Affected packages

• crates.io uu_mkdir: < 0.6.0 → fixed in 0.6.0

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. --- _Zellic finding 3.48. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._

Related

Alias · CVE (1)

  • CVE-2026-35353 The mkdir utility in uutils coreutils incorrectly applies permissions when using the -m flag by creating a directory with umask-derived… vulnerability

Weakness · CWE (3)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition weakness
  • CWE-732 Incorrect Permission Assignment for Critical Resource weakness

References