6.4medium
Mce: privilege escalation via excessive /etc/passwd permissions
- Severity
- 6.4medium CVSS:3.1 by redhat
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
Description
A container privilege escalation flaw was found in certain Multicluster Engine for Kubernetes 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, can 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 |
|---|---|---|
| multicluster-engine/agent-service-rhel8 | Not specified | CVE List |
| multicluster-engine/assisted-service-8-rhel8 | Not specified | CVE List |
| multicluster-engine/assisted-service-9-rhel9 | Not specified | CVE List |
| redhat advanced_cluster_management_for_kubernetes | Not specified | NVD |
All scores
| redhat | 6.4medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | 6.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
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 Multicluster Engine for Kubernetes 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, can 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 Multicluster Engine para Kubernetes. Este problema se origina en que el archivo /etc/p4ssd es creado 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, puede aprovechar su membresía en el 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 lleva a privilegios de root completos dentro del contenedor.
References
| https://access.redhat.com/security/cve/CVE-2025-57851 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2391104 | issue-tracking, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-57851 changed 2026-05-01 | CVE Terms of Use |
| NVD | CVE-2025-57851 changed 2026-07-24 | Public domain |