5.6medium
uutils coreutils rm Safeguard Bypass via Improper Path Normalization
- Severity
- 5.6medium CVSS:3.1 by canonical
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
- Also known as
- GHSA-89p7-7cq3-hhr2
Description
A vulnerability in the rm utility of uutils coreutils allows the bypass of safeguard mechanisms intended to protect the current directory. While the utility correctly refuses to delete . or .., it fails to recognize equivalent paths with trailing slashes, such as ./ or .///. An accidental or malicious execution of rm -rf ./ results in the silent recursive deletion of all contents within the current directory. The command further obscures the data loss by reporting a misleading 'Invalid input' error, which may cause users to miss the critical window for data recovery.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| coreutils | Not specified | CVE List |
| uu_rm (crates.io) | before 0.6.0 | GitHub Advisory Database |
| uutils coreutils | Not specified | NVD |
All scores
| canonical | 5.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
| GitHub | 5.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L |
Classification
What each source says
CVE List
A vulnerability in the rm utility of uutils coreutils allows the bypass of safeguard mechanisms intended to protect the current directory. While the utility correctly refuses to delete . or .., it fails to recognize equivalent paths with trailing slashes, such as ./ or .///. An accidental or malicious execution of rm -rf ./ results in the silent recursive deletion of all contents within the current directory. The command further obscures the data loss by reporting a misleading 'Invalid input' error, which may cause users to miss the critical window for data recovery.
GitHub Advisory Database
rm -rf . is correctly refused, but clean_trailing_slashes normalizes ./// to ./ while path_is_current_or_parent_directory only matches ./.. (and /.//..), not ./ or ../. So rm -rf ./ recursively deletes the directory's contents and then prints a misleading cannot remove './': Invalid input.
Impact: all files/subdirectories in the current directory are silently deleted; the misleading error makes users miss the recovery window. Recommendation: handle trailing-slash variants in path_is_current_or_parent_directory.
Remediation: Acknowledged by Canonical; fixed in commit d0e5af23.
Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.60. Credit: Zellic.
Upstream tracking issue: https://github.com/uutils/coreutils/issues/9749 · CVE-2026-35363
NVD (es)
Una vulnerabilidad en la utilidad rm de uutils coreutils permite eludir los mecanismos de salvaguardia destinados a proteger el directorio actual. Si bien la utilidad se niega correctamente a eliminar . o .., no reconoce rutas equivalentes con barras diagonales finales, como ./ o .///. Una ejecución accidental o maliciosa de rm -rf ./ resulta en la eliminación recursiva silenciosa de todo el contenido dentro del directorio actual. El comando oculta aún más la pérdida de datos al informar un error engañoso de ’Invalid input’, lo que puede hacer que los usuarios pierdan la ventana crítica para la recuperación de datos.
References
| https://github.com/uutils/coreutils/issues/9749 | exploit, issue-tracking, vendor-advisory, web | |
| https://github.com/uutils/coreutils/security/advisories/GHSA-89p7-7cq3-hhr2 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35363 | advisory | |
| https://github.com/uutils/coreutils | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35363 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-89p7-7cq3-hhr2 changed 2026-07-06 | CC-BY-4.0 |
| NVD | CVE-2026-35363 changed 2026-10-26 | Public domain |