CVE-2026-35363
JSON

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 packageVersionsReported by
coreutilsNot specifiedCVE List
uu_rm (crates.io)before 0.6.0GitHub Advisory Database
uutils coreutilsNot specifiedNVD

All scores

canonical5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L
GitHub5.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L

Classification

CWE-22CWE-693

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-35363 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-89p7-7cq3-hhr2 changed 2026-07-06CC-BY-4.0
NVDCVE-2026-35363 changed 2026-10-26Public domain