6.4medium
Osus-operator: privilege escalation via excessive /etc/passwd permissions
- Severity
- 6.4medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A container privilege escalation flaw was found in certain OpenShift Update Service (OSUS) images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, may be able to leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openshift-update-service/openshift-update-service-rhel8-operator | Not specified | CVE List |
| redhat openshift_update_service | Not specified | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
A container privilege escalation flaw was found in certain OpenShift Update Service (OSUS) images. This issue stems from the /etc/passwd file being created with group-writable permissions during build time. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, may be able to leverage their membership in the root group to modify the /etc/passwd file. This could allow the attacker to add a new user with any arbitrary UID, including UID 0, leading to full root privileges within the container.
NVD (es)
Una falla de escalada de privilegios de contenedor fue encontrada en ciertas imágenes de OpenShift Update Service (OSUS). Este problema se origina en que el archivo /etc/p4ssd se crea con permisos de escritura para el grupo durante el tiempo de compilación. En ciertas condiciones, un atacante que puede ejecutar comandos dentro de un contenedor afectado, incluso como un usuario no-root, podría aprovechar su pertenencia al grupo root para modificar el archivo /etc/p4ssd. Esto podría permitir al atacante añadir un nuevo usuario con cualquier UID arbitrario, incluyendo UID 0, lo que llevaría a privilegios de root completos dentro del contenedor.
References
| https://access.redhat.com/security/cve/CVE-2025-57854 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2391107 | issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-57854 changed 2026-04-08 | CVE Terms of Use |
| NVD | CVE-2025-57854 changed 2026-07-24 | Public domain |