Advisory

GHSA-x2wv-9p67-mh9w

Also known as: CVE-2026-35350

Summary

uutils coreutils doesn't properly handle setuid and setgid bits when ownership preservation fails

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-22 18:31 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

coreutils

crates.io · All systems

Affected

  • introduced 0, last affected 0.8.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences