CVE-2026-35350: Rust coreutils · The cp utility in uutils coreutils fails to properly handle setuid and setgid bits
Affects rust-coreutilsSource GCVE Database
Not known to be exploited · CVSS 6.6 Medium.
Data as of 10 Nov 2026, 06:18 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 22 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSrust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10rust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSrust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, users should avoid using the -p flag with cp in rust-coreutils in environments where setuid/setgid bits are security-critical, or use alternative tools such as GNU cp which handle this scenario correctly.
Description
The cp utility in the rust-coreutils package improperly handles setuid and setgid bits when the ownership preservation fails during a copy operation with the -p flag. Specifically, it applies the source mode bits even if the chown operation is unsuccessful, potentially resulting in user-owned copies retaining privileged bits. This behavior differs from GNU cp, which clears these bits if ownership cannot be preserved, thereby preventing unexpected privileged executables.