CVE-2025-58712

published 22 Oct 2025 · updated 6 Mar 2026

Amq: privilege escalation via excessive /etc/passwd permissions

6.4MediumCVSS 6.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ApacheActiveMQ
Red HatAMQ Broker
Red HatRHEL-9 based Middleware Containers

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in ActiveMQ, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-58712 severity on Zeptric[![CVE-2025-58712](https://zeptric.io/badge/cve/CVE-2025-58712.svg)](https://zeptric.io/cve/CVE-2025-58712)