{"id":"CVE-2026-35338","aliases":["CVE-2026-35338","GHSA-4c7q-4928-8445"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils chmod Path Traversal Bypass of --preserve-root","summary":"A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mechanism. The implementation only validates if the target path is literally / and does not canonicalize the path. An attacker or accidental user can use path variants such as /../ or symbolic links to execute destructive recursive operations (e.g., chmod -R 000) on the entire root filesystem, leading to system-wide permission loss and potential complete system breakdown.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mechanism. The implementation only validates if the target path is literally / and does not canonicalize the path. An attacker or accidental user can use path variants such as /../ or symbolic links to execute destructive recursive operations (e.g., chmod -R 000) on the entire root filesystem, leading to system-wide permission loss and potential complete system breakdown.","source":"cvelist"},{"lang":"en","text":"`Chmoder::chmod()` only compares the literal argument against `Path::new(\"/\")`, so the `--preserve-root` guard is bypassed by any path that *resolves* to root — a symlink to `/` or simply `/../`.\n\n```\nif self.recursive && self.preserve_root && file == Path::new(\"/\") {\n    return Err(ChmodError::PreserveRoot(\"/\".to_string()).into());\n}\n```\n\n**PoC** — recursively chmods the entire filesystem to `000` despite `--preserve-root`:\n\n```\nchmod -R --preserve-root 000 /../ -v\n```\n\n**Impact:** `--preserve-root` is the documented safeguard against destructive recursive operations on `/`. Bypassing it allows `chmod -R` to alter permissions across the whole filesystem, causing a complete system breakdown. Recommendation: canonicalize the target path before comparing against root.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit 413055b3.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.1. Credit: Zellic._","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en la utilidad chmod de uutils coreutils permite a los usuarios eludir el mecanismo de seguridad --preserve-root. La implementación solo valida si la ruta de destino es literalmente / y no canoniza la ruta. Un atacante o usuario accidental puede usar variantes de ruta como /.. /  o enlaces simbólicos para ejecutar operaciones recursivas destructivas (p. ej., chmod -R 000) en todo el sistema de archivos raíz, lo que lleva a una pérdida de permisos en todo el sistema y a una posible falla completa del sistema.","source":"nvd"}],"published":"2026-04-22T16:07:31.316Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3,"rating":"HIGH"}],"cwes":["CWE-22","CWE-59"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.6.0","status":"affected"}],"vendor":"Uutils","product":"coreutils","package":"coreutils","repo":"https://github.com/uutils/coreutils","platforms":["Linux","Unix","macOS"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.0"}],"ecosystem":"crates.io","package":"uu_chmod","purl":"pkg:cargo/uu_chmod","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.6.0"}],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/10033","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/releases/tag/0.6.0","tags":["release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-4c7q-4928-8445","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35338","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/413055b378fa6fe2299c5e5f538c8e6e841ab810","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils","tags":["package"],"sources":["ghsa"]}],"credits":["Zellic"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-23T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35338","url":"https://www.cve.org/CVERecord?id=CVE-2026-35338","licence":"CVE Terms of Use","modified":"2026-04-24T03:55:21.897Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4c7q-4928-8445","url":"https://github.com/advisories/GHSA-4c7q-4928-8445","licence":"CC-BY-4.0","modified":"2026-07-06T17:56:19.992Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35338","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35338","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.322Z","epss":{"score":0.00182,"percentile":0.08132,"date":"2026-12-01T12:00:22.000Z"}}