Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify setuid binary in accessible directory
-
DeliveryCopy with 'cp -p' command
-
Exploitchown fails due to privilege restrictions
-
ExecutionMode bits preserved despite ownership failure
-
PersistCreate writable privileged executable
-
ImpactExecute with elevated privilege or manipulate for privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Permission preservation
|
| Exploitation Conditions | Exploitation requires the following specific conditions: the system must be running uutils coreutils with the cp command; the -p (preserve) flag must be used; the source file must have setuid or setgid bits set in its mode; the user executing cp must lack the privilege to change file ownership (chown must fail, typically when attempting to change ownership to a different user like root); and the user must have write access to the destination directory. Non-default configurations are not required - the vulnerability manifests in standard usage of cp -p on files with privilege bits. The vulnerability does NOT require file ownership changes to succeed, only that the user lack the privilege to perform them. Limitation factors: this is a local-only vulnerability (AV:L); requires at least user-level access (PR:L); and only affects systems explicitly using uutils coreutils rather than GNU coreutils as their default cp implementation. |
| Impact | This vulnerability presents moderate real-world risk despite a CVSS score of 6.6. The CVSS vector (AV:L/AC:L/PR:L/UI:N/S:U) correctly identifies local access, low complexity, and low privilege requirements as necessary conditions. The SSVC framework indicates 'poc' exploitation status (proof-of-concept exists, not actively weaponized), 'no' automatable exploitation (requires specific directory structure and file manipulation), and 'partial' technical impact (information disclosure plus privilege escalation potential). The divergence from GNU cp behavior is notable because it suggests the vulnerability may only affect systems explicitly using uutils coreutils as a cp replacement, which is less common than systems using GNU coreutils. However, in environments where uutils is deployed (embedded systems, containers, Rust-based tooling), local privilege escalation via this mechanism becomes viable. The 'Information Disclosure' tag suggests the primary risk is unauthorized access to sensitive files marked with setuid bits. Real-world impact depends heavily on deployment context: high risk for multi-user systems where untrusted users can manipulate files in shared directories, lower risk for single-user systems or those with strict filesystem permissions. No conflict between CVSS and EPSS data is apparent; this is a genuine privilege-boundary issue that is not trivially exploitable. |
| Exploit ScenarioDerived | An attacker with local user access on a system running uutils coreutils identifies a script or binary in a shared directory that is intended to be setuid root. The attacker copies this file using 'cp -p source dest' to a location where they have write permissions. Because the chown operation fails (the attacker lacks privilege to change ownership to root), but uutils cp still applies the original mode bits, the attacker's copy becomes a setuid binary owned by the attacker's user. The attacker then modifies this copy or arranges for a privileged process to execute it, gaining code execution in a higher privilege context. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 23, 2026
The cp utility in uutils coreutils improperly preserves setuid and setgid bits when the chown operation fails during file copying with the -p flag, potentially creating unprivileged user-owned files that retain elevated privilege bits and violate security policies. This behavior diverges from GNU cp, which strips these bits when ownership preservation fails. Local users with write access to directories can exploit this to create unexpected privileged executables.
RemediationAI
The primary remediation is to upgrade to a patched version of uutils coreutils once released by the maintainers. Check the GitHub repository at https://github.com/uutils/coreutils/issues/9750 for availability of a fix version. As a temporary workaround on systems that require uutils coreutils, avoid using the -p flag when copying files that may have setuid or setgid bits set, or use the GNU coreutils cp utility instead if available. For administrators unable to replace uutils coreutils immediately, restrict filesystem permissions to prevent unprivileged users from creating or manipulating files in directories where sensitive binaries are copied, and monitor for unexpected setuid/setgid executables using find commands such as 'find / -perm /6000 -type f' to detect privilege bit anomalies. Note that these workarounds reduce functionality or require environment changes; the definitive fix is to deploy a corrected version of uutils coreutils that strips privilege bits when chown fails, matching GNU cp behavior.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in cargo
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The cp utility's -p (preserve) flag is designed to retain file metadata including ownership, permissions, and special mode bits (setuid, setgid, sticky). The vulnerability lies in uutils coreutils' handling of the privilege bits during the two-phase copy process: first copying file contents and applying permissions, then attempting to change ownership via chown(). When chown() fails (typically due to insufficient privileges to change file ownership to the original owner), GNU cp correctly strips setuid and setgid bits to prevent privilege escalation, while uutils coreutils incorrectly applies the source mode bits unconditionally. This is rooted in CWE-281 (Improper Preservation of Permissions), where the utility fails to adjust privilege attributes when the underlying precondition (successful ownership change) is not met. The issue affects all versions of uutils coreutils that implement the cp command with the -p preservation feature.
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:N/S:U/C:L/I:H/A:L
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
The cp utility in uutils coreutils fails to properly handle setuid and setgid bits when ownership preservation fails. When copying with the -p (preserve) flag, the utility applies the source mode bits even if the chown operation is unsuccessful. This can result in a user-owned copy retaining original privileged bits, creating unexpected privileged executables that violate local security policies. This differs from GNU cp, which clears these bits when ownership cannot be preserved.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
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
Privilege escalation to root in uutils coreutils chroot utility allows low-privileged local attackers with write access
Local privilege escalation in uutils coreutils before 0.10.0: the `install` utility applies a requested setuid/setgid mo
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
Privilege escalation in uutils coreutils mkfifo utility allows local attackers with low privileges to manipulate file pe
Bypass of --preserve-root protection in uutils coreutils rm utility allows local users to recursively delete the root fi
The mv utility in uutils coreutils improperly expands symbolic links instead of preserving them during moves across file
The split utility in uutils coreutils contains a time-of-check to time-of-use (TOCTOU) race condition that allows local
A time-of-check to time-of-use (TOCTOU) race condition in the mv utility of uutils coreutils during cross-device move op
The touch utility in uutils coreutils suffers from a Time-of-Check to Time-of-Use (TOCTOU) race condition that allows lo
Privilege escalation via symlink attack in uutils coreutils install utility when using the -D flag allows local attacker
EUVD-2026-24982
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB