{"id":"CVE-2026-35349","aliases":["CVE-2026-35349","GHSA-7cr3-h577-g38j"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils Path-Based Safety Bypass with --preserve-root","summary":"A vulnerability in the rm utility of uutils coreutils allows a bypass of the --preserve-root protection. The implementation uses a path-string check rather than comparing device and inode numbers to identify the root directory. An attacker or accidental user can bypass this safeguard by using a symbolic link that resolves to the root directory (e.g., /tmp/rootlink -> /), potentially leading to the unintended recursive deletion of the entire root filesystem.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability in the rm utility of uutils coreutils allows a bypass of the --preserve-root protection. The implementation uses a path-string check rather than comparing device and inode numbers to identify the root directory. An attacker or accidental user can bypass this safeguard by using a symbolic link that resolves to the root directory (e.g., /tmp/rootlink -> /), potentially leading to the unintended recursive deletion of the entire root filesystem.","source":"cvelist"},{"lang":"en","text":"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._","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad en la utilidad rm de uutils coreutils permite eludir la protección --preserve-root. La implementación utiliza una comprobación de cadena de ruta en lugar de comparar números de dispositivo e inodo para identificar el directorio raíz. Un atacante o usuario accidental puede eludir esta salvaguarda mediante el uso de un enlace simbólico que se resuelve en el directorio raíz (p. ej., /tmp/rootlink  ->  /), lo que podría llevar a la eliminación recursiva no intencionada de todo el sistema de archivos raíz.","source":"nvd"}],"published":"2026-04-22T16:07:59.808Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":6.7,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H","score":6.7,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":7.7,"rating":"HIGH"}],"cwes":["CWE-59","CWE-693"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.7.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.7.0"}],"ecosystem":"crates.io","package":"uu_rm","purl":"pkg:cargo/uu_rm","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.7.0"}],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/9706","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/releases/tag/0.7.0","tags":["release-notes","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-7cr3-h577-g38j","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35349","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/5e5968cdbc6618acd6c2402a8a98b503f278835e","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":"partial","date":"2026-04-22T18:04:49.853Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35349","url":"https://www.cve.org/CVERecord?id=CVE-2026-35349","licence":"CVE Terms of Use","modified":"2026-04-22T18:05:13.169Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7cr3-h577-g38j","url":"https://github.com/advisories/GHSA-7cr3-h577-g38j","licence":"CC-BY-4.0","modified":"2026-07-06T20:41:03.620Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35349","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35349","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.327Z","epss":{"score":0.00219,"percentile":0.07125,"date":"2026-11-30T12:00:22.000Z"}}