Skip to main content
VulnerabilityPublished Updated

CVE-2026-35350: Rust coreutils · The cp utility in uutils coreutils fails to properly handle setuid and setgid bits

Affects rust-coreutilsSource GCVE Database

0
Compare
Authoritative record:CVE-2026-35350· Medium 6.6

Not known to be exploited · CVSS 6.6 Medium.

Data as of 10 Nov 2026, 06:18 UTC

CVSS 3.1 base score
6.6Medium
How severe the flaw is on the 0–10 CVSS scale.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.04 LTSrust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=resoluteOther threatsAffected
  • 0.2.2-0ubuntu2 – 0.10.0-1ubuntu2~26.04.1
8 affected builds
Fixed in–
Ubuntu 25.10rust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=questingOther threatsAffected
  • 0.0.30-1 – 0.2.2-0ubuntu2.1
16 affected builds
Fixed in–
Ubuntu 24.04 LTSrust-coreutilspkg:deb/ubuntu/rust-coreutils?arch=source&distro=nobleOther threatsAffected
  • 0.0.20-1 – 0.0.24-2
7 affected builds
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.

References

Community reviews

Loading reviews…