{"id":"CVE-2026-35363","aliases":["CVE-2026-35363","GHSA-89p7-7cq3-hhr2"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils rm Safeguard Bypass via Improper Path Normalization","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"`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`.\n\n**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`.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit d0e5af23.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.60. Credit: Zellic._\n\n_Upstream tracking issue: https://github.com/uutils/coreutils/issues/9749 · CVE-2026-35363_","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-04-22T16:08:36.133Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","score":5.6,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","score":5.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L","score":5.6,"rating":"MEDIUM"}],"cwes":["CWE-22","CWE-693"],"affected":[{"ranges":[],"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.6.0"}],"ecosystem":"crates.io","package":"uu_rm","purl":"pkg:cargo/uu_rm","source":"ghsa"},{"ranges":[],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:-:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/issues/9749","tags":["exploit","issue-tracking","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-89p7-7cq3-hhr2","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35363","tags":["advisory"],"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-22T17:24:03.925Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35363","url":"https://www.cve.org/CVERecord?id=CVE-2026-35363","licence":"CVE Terms of Use","modified":"2026-04-22T17:24:11.243Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-89p7-7cq3-hhr2","url":"https://github.com/advisories/GHSA-89p7-7cq3-hhr2","licence":"CC-BY-4.0","modified":"2026-07-06T20:41:13.421Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35363","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35363","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:19.332Z","epss":{"score":0.00149,"percentile":0.04353,"date":"2026-12-01T12:00:22.000Z"}}