{"id":"CVE-2026-35349","aliases":["GHSA-7cr3-h577-g38j"],"url":"https://o3.security/vulnerability/CVE-2026-35349","summary":"uutils coreutils Path-Based Safety Bypass with --preserve-root","details":"The `--preserve-root` check uses a path-string test (`path.has_root() && path.parent().is_none()`) rather than comparing device/inode. A symlink to `/` (e.g. `/tmp/rootlink -> /`) has a parent component, so it passes the check. GNU caches `/`'s dev/inode at startup and compares every traversed directory against it.\n\n**Impact:** `rm -rf --preserve-root` on a path that resolves through a symlink to `/` bypasses protection and can delete system directories. Recommendation: compare each entered directory's dev/inode against cached `/`.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit 5e5968cd.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.44. Credit: Zellic._","published":"2026-04-22T16:07:59.808Z","modified":"2026-08-12T03:51:09.291839749Z","cvss":{"score":6.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H"},"epss":{"score":0.00185,"percentile":0.08329,"asOf":"2026-09-16"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"uu_rm","fixedVersion":"0.7.0"}],"fix":{"url":"https://github.com/uutils/coreutils/pull/9706","label":"uutils/coreutils#9706"},"references":[{"type":"WEB","url":"https://github.com/uutils"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/35xxx/CVE-2026-35349.json"},{"type":"ADVISORY","url":"https://github.com/uutils/coreutils/releases/tag/0.7.0"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35349"},{"type":"FIX","url":"https://github.com/uutils/coreutils/pull/9706"},{"type":"PACKAGE","url":"https://github.com/uutils/coreutils"},{"type":"WEB","url":"https://github.com/uutils/coreutils/security/advisories/GHSA-7cr3-h577-g38j"},{"type":"WEB","url":"https://github.com/uutils/coreutils/commit/5e5968cdbc6618acd6c2402a8a98b503f278835e"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:09.291839749Z"}}