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 package | Versions | Reported by |
|---|---|---|
| coreutils | Not specified | CVE List |
| coreutils (crates.io) | up to 0.8.0 | GitHub Advisory Database |
| uutils coreutils | Not specified | NVD |
All scores
| canonical | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
| GitHub | 6.6medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L |
Classification
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
| https://github.com/uutils/coreutils/issues/9750 | exploit, issue-tracking, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-35350 | advisory | |
| https://github.com/uutils/coreutils | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-35350 changed 2026-04-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-x2wv-9p67-mh9w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-35350 changed 2026-10-26 | Public domain |