Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconUser executes rm -rf ./
-
DeliveryUtility fails to canonicalize path with trailing slash
-
ExploitSafeguard check matches only literal '.' and '..'
-
InstallVulnerable code deletes current directory recursively
-
C2Utility outputs 'Invalid input' error
-
ExecuteUser assumes safe failure
-
ImpactData loss discovered too late for recovery
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) local access to the system with shell execution capability; (2) write permissions to the target directory (to execute the rm command); (3) user interaction - the attacker or victim must explicitly execute 'rm -rf ./' or a similar variant with trailing slashes; (4) uutils coreutils installed as the system rm utility or explicitly invoked. The vulnerability is NOT exploitable remotely, does not require elevated privileges (standard user write access suffices), and does NOT affect systems using GNU coreutils or other rm implementations. Exploitation is limited by the UI:R requirement: the command must be typed or invoked by a human or script, preventing fully automated remote exploitation. Systems where rm is restricted via sudo rules or where users lack shell access are not affected. |
| Impact | This vulnerability presents moderate real-world risk despite the 5.6 CVSS score. The CVSS vector (AV:L/AC:L/PR:L/UI:R) correctly reflects that exploitation requires local access, low complexity, and user interaction (the user must execute the command), limiting automated exploitation. However, the technical impact is severe: silent recursive deletion of all files in the current working directory with misleading error messaging that delays user awareness of data loss. SSVC assessment (Exploitation: none, Automatable: no, Technical Impact: partial) aligns with low exploitation likelihood but acknowledges the serious consequences. The primary risk scenario involves a developer or system administrator accidentally executing rm -rf ./ in a critical directory, or a malicious script within a multi-user system exploiting this to cause data loss under the guise of a benign error. The 'Invalid input' error message is particularly problematic because it may lead users to believe the command failed safely, delaying discovery of the loss and reducing recovery window. The absence of KEV listing and the requirement for user interaction (UI:R) suggest this is not actively weaponized against multiple targets, but the simplicity of exploitation for local attackers and severity of impact warrant priority remediation in multi-user or CI/CD environments. |
| Exploit ScenarioDerived | A developer working in a Git repository accidentally types 'rm -rf ./' instead of 'rm -rf ./node_modules/' due to shell expansion or muscle memory, silently deleting all project files. The utility reports 'Invalid input' error, which the developer interprets as a safe failure, but the entire repository has already been deleted. Alternatively, a malicious script or cron job within a shared multi-user system could exploit this to delete user data under the guise of a normal utility error, bypassing audit logs that might flag explicit 'rm -rf /' attempts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
The rm utility in uutils coreutils fails to properly validate current directory paths with trailing slashes (./ or .///), allowing local users with write access to silently delete all contents of the current directory via rm -rf ./ while the utility reports a misleading 'Invalid input' error. CVSS score 5.6 reflects local attack vector and required user interaction, though the impact is severe data loss with potential recovery complications.
RemediationAI
Upgrade to a patched version of uutils coreutils that correctly normalizes and validates paths with trailing slashes to prevent rm from accepting './', './//', or other equivalent forms of the current directory. Consult the GitHub issue at https://github.com/uutils/coreutils/issues/9749 for patch availability and exact version. As a temporary compensating control, restrict rm usage in critical environments via AppArmor, SELinux, or sudo restrictions to trusted users only, or mandate code review for any rm -rf commands in scripts. However, these controls do not prevent accidental misuse by authorized developers. Additionally, implement file system snapshots or atomic backups in critical directories (particularly project roots and home directories) to reduce recovery time window if silent deletion occurs. Organizations should also audit any CI/CD pipelines or deployment scripts that invoke rm with wildcards or directory arguments, as this vulnerability increases risk in automation contexts.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability stems from insufficient path normalization in the rm utility's safeguard mechanism (CWE-22: Improper Limitation of a Pathname to a Restricted Directory). The utility correctly blocks deletion of the literal paths '.' and '..' but fails to recognize semantically equivalent paths with trailing slashes such as './' or './//', which resolve to the current directory after path canonicalization. This represents a classic path traversal validation bypass where the input sanitization logic does not account for all syntactic variations of the same logical path. The affected product is the Rust-based reimplementation of GNU coreutils (uutils), which aims for compatibility with POSIX-standard utilities but contains this regression in directory protection logic.
Know when Coreutils gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:L
Primary rating from Vendor (canonical) · only source for this CVE.
CVSS VectorVendor: canonical
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Affected Products (CPE)CVE.org
The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of service (crash) or possibly ex
Recursive chmod operations can bypass --preserve-root protection in uutils coreutils versions prior to 0.6.0, allowing l
Local privilege escalation in uutils coreutils mkfifo allows authenticated users to downgrade permissions on arbitrary f
The ln utility in uutils coreutils fails to process source paths containing non-UTF-8 filename bytes when using target-d
The chmod utility in uutils coreutils versions prior to 0.6.0 incorrectly reports success (exit code 0) when recursively
The mknod utility in uutils coreutils creates device nodes before atomically applying SELinux security labels, and fails
The printenv utility in uutils coreutils versions before 0.6.0 silently omits environment variables containing invalid U
Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access
Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi
Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo
Logic error in uutils coreutils cut utility causes incorrect behavior when combining the -s (only-delimited), -z (null-t
The id utility in uutils coreutils displays incorrect effective user information in its pretty-print output when real an
EUVD-2026-25008
GHSA-89p7-7cq3-hhr2
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB