CVE-2025-58712
JSON

6.4medium

Amq: privilege escalation via excessive /etc/passwd permissions

Severity
6.4medium CVSS:3.1 by redhat
Exploit likelihood
0.28% (higher than 13% of CVEs)
Published
Last changed
Assigned by
redhat

Description

A container privilege escalation flaw was found in certain AMQ Broker 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
activemq-artemisNot specified
Not affected: before *
CVE List
amq7/amq-broker-init-rhel9Not specified
Not affected: from 7.13.2-1 before *
CVE List
amq7/amq-broker-rhel9Not specified
Not affected: from 7.13.2-1 before *
CVE List
amq7/amq-broker-rhel9-operatorNot specified
Not affected: from 7.13.2-1 before *
CVE List
amq7/amq-broker-rhel9-operator-bundleNot specified
Not affected: from 7.13.2-1 before *
CVE List
amq7-tech-preview/amq-broker-console-plugin-rhel9Not specified
Not affected: from 7.13.2-1 before *
CVE List
amq7-tech-preview/amq-broker-jolokia-api-server-rhel9Not specified
Not affected: from 7.13.2-1 before *
CVE List
amq-broker-init-rhel8Not specifiedCVE List
amq-broker-init-rhel9Not specifiedCVE List
amq-broker-rhel8Not specifiedCVE List
amq-broker-rhel9Not specifiedCVE 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 AMQ Broker 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)

Se encontró una falla de escalada de privilegios de contenedor en ciertas imágenes de AMQ Broker. Este problema se origina en la creación del archivo /etc/p4ssd 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-58712 changed 2026-03-06CVE Terms of Use
NVDCVE-2025-58712 changed 2026-10-18Public domain