{"id":"GHSA-7cr3-h577-g38j","summary":"rm: --preserve-root bypassed via a symlink to / (string check instead of dev/inode)","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 -\u003e /`) 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._","aliases":["CVE-2026-35349"],"modified":"2026-07-06T20:41:03.620763Z","published":"2026-07-06T20:15:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-07-06T20:15:27Z","nvd_published_at":null,"cwe_ids":["CWE-59","CWE-693"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/uutils/coreutils/security/advisories/GHSA-7cr3-h577-g38j"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35349"},{"type":"WEB","url":"https://github.com/uutils/coreutils/pull/9706"},{"type":"WEB","url":"https://github.com/uutils/coreutils/commit/5e5968cdbc6618acd6c2402a8a98b503f278835e"},{"type":"PACKAGE","url":"https://github.com/uutils/coreutils"},{"type":"WEB","url":"https://github.com/uutils/coreutils/releases/tag/0.7.0"}],"affected":[{"package":{"name":"uu_rm","ecosystem":"crates.io","purl":"pkg:cargo/uu_rm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-7cr3-h577-g38j/GHSA-7cr3-h577-g38j.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H"}]}