Skip to main content

uutils coreutils CVE-2026-35363

| EUVDEUVD-2026-25008 MEDIUM
Path Traversal (CWE-22)
5.6
CVSS 3.1 · Vendor: canonical
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    User executes rm -rf ./
  2. Delivery
    Utility fails to canonicalize path with trailing slash
  3. Exploit
    Safeguard check matches only literal '.' and '..'
  4. Install
    Vulnerable code deletes current directory recursively
  5. C2
    Utility outputs 'Invalid input' error
  6. Execute
    User assumes safe failure
  7. Impact
    Data 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

cargo coreutils no fix
cargo uu_rm fix: 0.6.0

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

Vendor (canonical) PRIMARY 5.6 MEDIUM
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

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
Low

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

EPSS Score
0.0%
Top 99% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:uutils:coreutils:*:*:*:*:*:*:*:*
CVE-2014-9471 HIGH POC
7.5 Jan 16

The parse_datetime function in GNU coreutils allows remote attackers to cause a denial of service (crash) or possibly ex

CVE-2026-35338 HIGH POC
7.3 Apr 22

Recursive chmod operations can bypass --preserve-root protection in uutils coreutils versions prior to 0.6.0, allowing l

CVE-2026-35341 HIGH POC
7.1 Apr 22

Local privilege escalation in uutils coreutils mkfifo allows authenticated users to downgrade permissions on arbitrary f

CVE-2026-35373 MEDIUM POC
5.5 Apr 22

The ln utility in uutils coreutils fails to process source paths containing non-UTF-8 filename bytes when using target-d

CVE-2026-35339 MEDIUM POC
5.5 Apr 22

The chmod utility in uutils coreutils versions prior to 0.6.0 incorrectly reports success (exit code 0) when recursively

CVE-2026-35361 MEDIUM POC
4.4 Apr 22

The mknod utility in uutils coreutils creates device nodes before atomically applying SELinux security labels, and fails

CVE-2026-35366 MEDIUM POC
4.4 Apr 22

The printenv utility in uutils coreutils versions before 0.6.0 silently omits environment variables containing invalid U

CVE-2026-35368 HIGH
7.8 Apr 22

Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access

CVE-2026-35349 HIGH
7.7 Apr 22

Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi

CVE-2026-93658 HIGH
7.3 Sep 18

Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo

CVE-2026-35381 LOW POC
3.3 Apr 22

Logic error in uutils coreutils cut utility causes incorrect behavior when combining the -s (only-delimited), -z (null-t

CVE-2026-35371 LOW POC
3.3 Apr 22

The id utility in uutils coreutils displays incorrect effective user information in its pretty-print output when real an

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy