CVE-2026-35349 — Vulnerability in uu_rm — CVE Details
rm: --preserve-root bypassed via a symlink to / (string check instead of dev/inode)
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.22%). Schedule for your next planned update.
Does your project use an affected uu_rm version?
Paste your Cargo.lock to check it for CVE-2026-35349 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
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 /.
Remediation: Acknowledged by Canonical; fixed in commit 5e5968cd.
Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.44. Credit: Zellic.
Advisory Timeline
- First published July 6, 2026 (143 days ago).
- Last revised July 6, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p uu_rm --precise 0.7.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Fixed In |
|---|---|
| uu_rm crates.io · Affected: All versions | 0.7.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-59
- CWE-693Protection Mechanism FailureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 6.7 score means for each attack dimension.
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
References
- https://github.com/uutils/coreutils/security/advisories/GHSA-7cr3-h577-g38jWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-35349ADVISORY
- https://github.com/uutils/coreutils/pull/9706WEB
- https://github.com/uutils/coreutils/commit/5e5968cdbc6618acd6c2402a8a98b503f278835eWEB
- https://github.com/uutils/coreutilsPACKAGE
- https://github.com/uutils/coreutils/releases/tag/0.7.0WEB
Frequently Asked Questions
- What is CVE-2026-35349?
- rm: --preserve-root bypassed via a symlink to / (string check instead of dev/inode). This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 6.7/10).
- How do I check if my project is affected by CVE-2026-35349?
- CVE-2026-35349 affects uu_rm. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-35349 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation requires specific conditions, or the impact is limited.
This is a below-median EPSS score — only 7.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-35363MEDIUM
rm: 'rm -rf ./' (and ./// variants) silently deletes current directory contents, bypassing dot protection
- CVE-2026-115906MEDIUM
zip: AES Entry HMAC Authentication Bypass on Premature EOF
- CVE-2026-35374MEDIUM
split: TOCTOU output-open allows truncating a swapped file