CVE-2026-35338

uutils coreutils chmod Path Traversal Bypass of --preserve-root

Published Apr 22, 2026 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
Description
A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mechanism. The implementation only validates if the target path is literally / and does not canonicalize the path. An attacker or accidental user can use path variants such as /../ or symbolic links to execute destructive recursive operations (e.g., chmod -R 000) on the entire root filesystem, leading to system-wide permission loss and potential complete system breakdown.

Analysis

AI-generated

Technical impact

The chmod utility in uutils coreutils validates only when the target path equals exactly "/", and does not canonicalize the path. This allows an attacker to use path variants such as "/../" or symbolic links to bypass the --preserve-root safety mechanism. By exploiting this flaw, an attacker can execute destructive recursive operations—for example, running chmod -R 000 on the entire root filesystem—leading to a loss of permissions across critical system files and a potential complete system breakdown. The vulnerability exposes a classic pathname traversal weakness (CWE‑22) that directly undermines file system integrity and availability.

Affected Systems

The affected product is Uutils coreutils. The vulnerability exists in versions prior to the 0.6.0 release, which was announced in a GitHub pull request and release tag. Users employing earlier versions of the chmod binary in this project are at risk.

Risk and Exploitability

The CVSS score of 7.3 highlights a high severity rating, indicating that the flaw can cause significant damage when exploited. Although a current EPSS score is not available, the lack of a KEV listing suggests no widespread exploitation has been reported at this time. Based on the description, the attack vector is local; an attacker or even an accidental user with access to the filesystem and the ability to invoke chmod can craft a path that triggers the bypass. The exploit requires minimal prerequisites beyond the presence of the vulnerable binary, making it relatively straightforward to use.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update uutils coreutils to version 0.6.0 or later, which addresses the path traversal bypass in chmod.
  • If an immediate update is not possible, restrict the usage of the chmod binary by removing user execution permissions or placing the binary in a protected location that is not reachable via path variants.
  • Consider configuring stricter filesystem controls such as ACLs or chroot environments to limit the scope of destructive permission changes and to enforce the intended --preserve-root behavior.

Generated by OpenCVE AI on April 27, 2026 at 08:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9gqx-53gp-c8g3 uutils coreutils allows users to bypass the --preserve-root safety mechanism
Github GHSA Github GHSA GHSA-4c7q-4928-8445 chmod: --preserve-root bypassed by any path that resolves to root (e.g. /../)
History
Type Values Removed Values Added
First Time appeared Uutils
Uutils coreutils
CPEs cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*
Vendors & Products Uutils
Uutils coreutils
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability in the chmod utility of uutils coreutils allows users to bypass the --preserve-root safety mechanism. The implementation only validates if the target path is literally / and does not canonicalize the path. An attacker or accidental user can use path variants such as /../ or symbolic links to execute destructive recursive operations (e.g., chmod -R 000) on the entire root filesystem, leading to system-wide permission loss and potential complete system breakdown.
Title uutils coreutils chmod Path Traversal Bypass of --preserve-root
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Apr 24, 2026, 3:55 AM
Reserved
Apr 2, 2026, 12:58 PM
Status
Analyzed
Published
Apr 22, 2026, 5:16 PM
Modified
Oct 26, 2026, 9:10 PM