{"id":"CVE-2026-35339","aliases":["GHSA-4x34-chg5-mwjj"],"url":"https://o3.security/vulnerability/CVE-2026-35339","summary":"uutils coreutils chmod False Success Exit Code in Recursive Mode","details":"In `Chmoder::chmod()` the recursive branch overwrites the running result instead of accumulating it, so the exit code reflects only the *last* file processed:\n\n```\nif self.recursive {\n    r = self.walk_dir_with_context(file, true);   // overwrites r\n} else {\n    r = self.chmod_file(file).and(r);\n}\n```\n\n**PoC:** GNU returns 1 when a file fails; uutils returns 0 if the last entry succeeds:\n\n```\n$ chmod -R 0755 chmod-bug/root chmod-bug/user  # GNU -> ret=1\n$ uutils chmod -R 0755 chmod-bug/root chmod-bug/user  # -> ret=0\n```\n\n**Impact:** scripts relying on the exit code get a false success signal while some files retained restrictive/unexpected permissions, leading to access-control misconfigurations. Recommendation: accumulate errors during traversal.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit abd581f6.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.2. Credit: Zellic._","published":"2026-04-22T16:07:33.703Z","modified":"2026-08-12T03:51:32.122398017Z","cvss":{"score":5.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"},"epss":{"score":0.00143,"percentile":0.03959,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"uu_chmod","fixedVersion":"0.6.0"}],"fix":{"url":"https://github.com/uutils/coreutils/pull/9793","label":"uutils/coreutils#9793"},"references":[{"type":"WEB","url":"https://github.com/uutils"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35339.json"},{"type":"ADVISORY","url":"https://github.com/uutils/coreutils/releases/tag/0.6.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35339"},{"type":"FIX","url":"https://github.com/uutils/coreutils/pull/9793"},{"type":"PACKAGE","url":"https://github.com/uutils/coreutils"},{"type":"WEB","url":"https://github.com/uutils/coreutils/security/advisories/GHSA-4x34-chg5-mwjj"},{"type":"WEB","url":"https://github.com/uutils/coreutils/commit/abd581f62e97d0b147306ac40eac13af71c6fbba"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:32.122398017Z"}}