CVE-2026-35353: mkdir -m Exposes Directory With Umask Vulnerability
LOWCVE-2026-35353 is a LOW (CVSS 3.3) -m exposes directory with umask vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting mkdir libraries in the crates.io ecosystem. The issue involves -m exposes directory with umask perms before chmod (race window). Remediation is available by upgrading affected packages to version 0.6.0.
CVE-2026-35353 at a Glance
Security Impact
CVSS: 3.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2026-35353
To remediate this vulnerability, upgrade all affected mkdir dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade uu_mkdir to 0.6.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for uu_mkdir
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-35353, inspect your project dependencies for mkdir:
inspect dependencies for uu_mkdir
Analyze the terminal output to locate any version of mkdir in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In mkdir, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-35353 Affected mkdir Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
uu_mkdir
|
crates.io |
< 0.6.0
|
0.6.0
|
References
Frequently Asked Questions
What is CVE-2026-35353?
Which mkdir versions are affected?
What version fixes CVE-2026-35353?
Is uu_mkdir affected?
What is the CVSS score of CVE-2026-35353?
What CWE is associated with CVE-2026-35353?
How can I check crates.io dependencies for CVE-2026-35353?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mj6p-44ch-cq69",
"modified" : "2026-07-06T20:16:16Z",
"published" : "2026-07-06T20:16:16Z",
"aliases" : [ "CVE-2026-35353" ],
"summary" : "mkdir: -m exposes directory with umask perms before chmod (race window)",
"details" : "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.\n\n---\n_Zellic finding 3.48. Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "uu_mkdir"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/security/advisories/GHSA-mj6p-44ch-cq69"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-35353"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/pull/10036"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/commit/037b9583bc03d814e8516df54ebcda6f681fe1f8"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/uutils/coreutils"
}, {
"type" : "WEB",
"url" : "https://github.com/uutils/coreutils/releases/tag/0.6.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-362", "CWE-367", "CWE-732" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-06T20:16:16Z",
"nvd_published_at" : null
}
}