CVE-2026-35350
JSON

6.6medium

uutils coreutils cp Unexpected Privileged Executable Creation with -p

Severity
6.6medium CVSS:3.1 by canonical
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
canonical
Also known as
GHSA-x2wv-9p67-mh9w

Description

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.

Affected

Product or packageVersionsReported by
coreutilsNot specifiedCVE List
coreutils (crates.io)up to 0.8.0GitHub Advisory Database
uutils coreutilsNot specifiedNVD

All scores

canonical6.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
GitHub6.6medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

Classification

CWE-281

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

La utilidad cp en uutils coreutils no maneja correctamente los bits setuid y setgid cuando falla la preservación de la propiedad. Al copiar con la opción -p (preservar), la utilidad aplica los bits de modo de origen incluso si la operación chown no tiene éxito. Esto puede resultar en una copia propiedad del usuario que retiene los bits privilegiados originales, creando ejecutables privilegiados inesperados que violan las políticas de seguridad locales. Esto difiere de GNU cp, que borra estos bits cuando no se puede preservar la propiedad.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-35350 changed 2026-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-x2wv-9p67-mh9w changed 2026-09-10CC-BY-4.0
NVDCVE-2026-35350 changed 2026-10-26Public domain