Chmoder::chmod() only compares the literal argument against Path::new("/"), so the --preserve-root guard is bypassed by any path that *resolvesto root — a symlink to / or simply /../. `` if self.recursive && self.preser…
| CVE ID | CVE-2026-35338 |
| Vendor | rust |
| Affected Product | uu_chmod |
| Vulnerability Type | Vulnerability |
| CVSS Score | 7.3 (HIGH) |
| Actively Exploited | ❌ No known exploitation |
| Patch Status | See Vendor Advisory → |
| Reported By | CYBERDUDEBIVASH SENTINEL APEX Intelligence (via github_advisories) |
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 /../. `` if self.recursive && self.preserve_root && file == Path::new("/") { return Err(ChmodError::PreserveRoot("/".to_string()).into()); } ` PoC — recursively chmods the entire filesystem to 000 despite --preserve-root: ` chmod -R --preserve-root 000 /../ -v ` 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. Remediation: Acknowledged b
Sigma rules, YARA signatures, IOC table, and SIEM queries for Splunk, Elastic, Sentinel, and Chronicle — deployable in 5 minutes.