Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. uu_mkdir
  4. ›
  5. CVE-2026-35353

CVE-2026-35353: mkdir: -m exposes directory with umask perms before chmod (race window)

July 6, 2026

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.

References

  • github.com/advisories/GHSA-mj6p-44ch-cq69
  • github.com/uutils/coreutils/commit/037b9583bc03d814e8516df54ebcda6f681fe1f8
  • github.com/uutils/coreutils/pull/10036
  • github.com/uutils/coreutils/releases/tag/0.6.0
  • github.com/uutils/coreutils/security/advisories/GHSA-mj6p-44ch-cq69
  • nvd.nist.gov/vuln/detail/CVE-2026-35353

Code Behaviors & Features

Detect and mitigate CVE-2026-35353 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.6.0

Fixed versions

  • 0.6.0

Solution

Upgrade to version 0.6.0 or above.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

cargo/uu_mkdir/CVE-2026-35353.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 10 Jul 2026 12:17:17 +0000.