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 package | Versions | Reported by |
|---|---|---|
| activemq-artemis | Not specified Not affected: before * | CVE List |
| amq7/amq-broker-init-rhel9 | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq7/amq-broker-rhel9 | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq7/amq-broker-rhel9-operator | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq7/amq-broker-rhel9-operator-bundle | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq7-tech-preview/amq-broker-console-plugin-rhel9 | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq7-tech-preview/amq-broker-jolokia-api-server-rhel9 | Not specified Not affected: from 7.13.2-1 before * | CVE List |
| amq-broker-init-rhel8 | Not specified | CVE List |
| amq-broker-init-rhel9 | Not specified | CVE List |
| amq-broker-rhel8 | Not specified | CVE List |
| amq-broker-rhel9 | Not specified | CVE List |
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 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
| https://access.redhat.com/errata/RHSA-2025:17562 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2025-58712 | vdb-entry | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2394418 | issue-tracking | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58712 changed 2026-03-06 | CVE Terms of Use |
| NVD | CVE-2025-58712 changed 2026-10-18 | Public domain |