uutils coreutils rm Trailing Slash Path Vulnerability Leading to Unintended Recursive Deletion

Vulnerability

A vulnerability in the rm command of uutils coreutils allows users to bypass safeguards that protect the current directory from deletion. While the command normally refuses to delete the current or parent directory, it fails to recognize equivalent paths with trailing slashes, such as './' or './//'. This oversight can lead to accidental or malicious deletion of all files in the current directory. The issue is compounded by a misleading error message that may cause users to overlook the data loss.

Impact

The vulnerability allows for silent, recursive deletion of all contents in the current directory, with the rm command erroneously reporting an 'Invalid input' error, which can obscure the data loss.

Reproduction

The vulnerability can be reproduced by executing the command 'rm -rf ./' or 'rm -rf .///' in a directory. Despite the command's error message indicating a failure to delete, all contents of the directory will have been removed.

Remediation

Users can update to the latest version of uutils coreutils, where this vulnerability has been addressed.

Added: Apr 22, 2026, 5:57 PM
Updated: Apr 22, 2026, 5:57 PM

Vulnerability Rating

Custom Algorithm
spread
8.4
impact
2.5
exploitability
3.6
remediation
0.0
relevance
6.5
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.