Amq: privilege escalation via excessive /etc/passwd permissions
Key facts
- Attack vector
- Local
- Privileges required
- High
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | RHEL-9 based Middleware Containers | — | 7.13.2-1 | Patch available | CNA |
| Red Hat | Red Hat AMQ Broker 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat AMQ Broker 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat AMQ Broker 7 | — | — | No fix listed | CNA |
| Red Hat | Red Hat AMQ Broker 7 | — | — | No fix listed | CNA |
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- RHEL-9 based Middleware Containers VendorRed Hat Affected — Fixed in 7.13.2-1 Patch available CNA
- Red Hat AMQ Broker 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat AMQ Broker 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat AMQ Broker 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat AMQ Broker 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
Remediation
Red Hat 1 advisory
- RHSA-2025:17562 Released 2025-10-08 · Red Hat rating ModerateAMQ Broker 7.13.2.OPR.1.GA Container Images release and security update
- Middleware Containers for Openshift amq7-tech-preview/amq-broker-console-plugin-rhel9, amq7-tech-preview/amq-broker-jolokia-api-server-rhel9, amq7/amq-broker-init-rhel9 +3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat AMQ Broker 7 | Affected | No fix yet |
| Middleware Containers for Openshift | Fixed | RHSA-2025:17562 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-58712
- 2026-10-03 Alias added: GHSA-r36m-fwrr-9f4g
References
More Apache vulnerabilities
- TI-2025-18529 Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT KEVCVSS 3.1CRITICAL 10.0
- TI-2024-30292 Apache OFBiz: Confused controller-view authorization logic (forced browsing) KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26062 Apache OFBiz: Unauthenticated endpoint could allow execution of screen rendering code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-21190 Apache OFBiz: Path traversal leading to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2024-18186 Apache HugeGraph-Server: Command execution in gremlin KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25106 Deserialization of untrusted data in Apache ActiveMQ KEVCVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-58712 · CVE Program
- CVE-2025-58712 · NVD
- FIRST EPSS
- GHSA-r36m-fwrr-9f4g · GitHub Advisory Database · CC BY 4.0
- CVE-2025-58712 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences