CVE-2025-57848
JSON

6.4medium

Container-native-virtualization: privilege escalation via excessive /etc/passwd permissions

Severity
6.4medium CVSS:3.1 by redhat
Exploit likelihood
0.19% (higher than 9% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

Description

A container privilege escalation flaw was found in certain Container-native Virtualization 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 packageVersionsReported by
container-native-virtualization/bridge-markerNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/cluster-network-addons-operatorNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/cnv-containernetworking-pluginsNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/cnv-must-gather-rhel8Not specified
Not affected: from v4.12.21-3 before *
CVE List
container-native-virtualization/hco-bundle-registryNot specified
Not affected: from v4.12.21-21 before *
CVE List
container-native-virtualization/hostpath-csi-driverNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/hostpath-provisioner-rhel8Not specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/hostpath-provisioner-rhel8-operatorNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/hyperconverged-cluster-operatorNot specified
Not affected: from v4.12.21-5 before *
CVE List
container-native-virtualization/hyperconverged-cluster-webhook-rhel8Not specified
Not affected: from v4.12.21-5 before *
CVE List
container-native-virtualization/kubemacpoolNot specified
Not affected: from v4.12.21-4 before *
CVE List
container-native-virtualization/kubevirt-console-pluginNot specified
Not affected: from v4.12.21-5 before *
CVE List

Classification

CWE-276

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 Container-native Virtualization 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 virtualización nativa de contenedores. 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, puede 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 lleva a privilegios de root completos dentro del contenedor.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-57848 changed 2026-10-30CVE Terms of Use
NVDCVE-2025-57848 changed 2026-10-30Public domain