AMQ Broker CVE-2025-58712
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain non-root command execution in container
-
DeliveryConfirm membership in root group (GID 0)
-
ExploitAppend UID 0 entry to group-writable /etc/passwd
-
ExecutionSwitch to crafted root account
-
ImpactFull root privileges inside container
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Default permission hardening
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to ALREADY have command execution inside an affected AMQ Broker container as a process whose user is a member of the root group (GID 0) - this is the specific precondition, not generic network access. The concrete enabling defect is that /etc/passwd was created group-writable at image build time, letting a root-group member append an arbitrary UID 0 account. Limiting factors: there is NO network vector (AV:L) and NO initial access provided by this flaw - a separate foothold is required first; it is confined to the container (S:U, no host escape described); and it is irrelevant on images not built with the group-writable /etc/passwd or where workloads cannot execute commands as a root-group member. |
| Impact | This is a locally-exploitable container privilege-escalation flaw (CWE-276, incorrect default permissions) rated CVSS 6.4 Medium with vector AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H. The signals are internally consistent and point to LOW-to-MODERATE real-world priority rather than an urgent emergency: the attacker must already have code-execution inside an affected AMQ Broker container, so this is a post-compromise escalation primitive, not an initial-access bug. EPSS is low at 0.21% (10th percentile), and there is no CISA KEV listing and no public exploit identified at time of analysis - all three exploitation signals agree that mass exploitation is unlikely. Because it is Red Hat's own product security team (secalert@redhat.com) that reported and fixed it, this reads as a defense-in-depth hardening fix. The one nuance: CVSS marks PR:H, but the described precondition is merely a NON-root user who happens to be in the root group - functionally closer to low-privilege access - so the raw CVSS may slightly understate how easily the final step chains once any foothold exists. Net: patch in normal cycle; it matters most where untrusted or multi-tenant workloads can run commands inside these containers. |
| Exploit ScenarioDerived | An attacker who has already gained command execution inside an affected AMQ Broker container as a non-root user (e.g., via a separate application flaw or a supply-chain foothold) notices their process runs with membership in the root group (GID 0). Because /etc/passwd was built group-writable, they append a new account entry with UID 0, then switch to it to obtain full root privileges within the container. No public exploit code is identified at time of analysis, but the technique is trivial and well-documented. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 18, 2026
Privilege escalation in AMQ Broker container images lets an attacker who already has command execution as a member of the root group (GID 0) modify the group-writable /etc/passwd file and add a UID 0 account, yielding root inside the container. The flaw is a build-time permissions defect (CWE-276) confined to the container; it does not provide initial access, network reach, or a host escape. No public exploit was identified at time of analysis and EPSS is 0.21% (10th percentile), so risk is concentrated in environments where untrusted users can run commands in affected images built with this misconfiguration.
RemediationAI
Patch available per vendor advisory: apply the updated AMQ Broker container images referenced in RHSA-2025:17562 (https://access.redhat.com/errata/RHSA-2025:17562) and confirm the replacement build ships /etc/passwd as root:root with mode 0644 and no group-write bit. If immediate redeployment is not possible, rebuild or patch the image layer to chmod 0644 /etc/passwd and remove GID 0 write access, then roll pods; the trade-off is a required image rebuild and regression testing. Also run affected workloads with a process user that is not a member of GID 0 where feasible, and avoid granting shell or command-execution access to untrusted users inside these containers; restricting supplemental root-group membership can break applications that depend on group 0 file access, so validate before enforcing.
Affected ProductsAI
Certain Red Hat AMQ Broker container images built with a group-writable /etc/passwd file are affected; the description does not enumerate exact tags or version ranges, and no CPE strings were supplied. Red Hat's advisory RHSA-2025:17562 (https://access.redhat.com/errata/RHSA-2025:17562) and the CVE page (https://access.redhat.com/security/cve/CVE-2025-58712) identify the fixed image builds. Administrators should inventory AMQ Broker images and verify /etc/passwd permissions rather than relying on a version number alone.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The underlying defect is an incorrect default permission (CWE-276) on /etc/passwd in certain AMQ Broker image builds: the file is left group-writable, and the root group is GID 0. Because container images often run processes with GID 0 as a supplemental group, a user who can execute commands in the container can append a passwd entry with UID 0 and then use it to obtain root within the container namespace. The assessed CVSS vector reflects local access, high attack complexity, authenticated access, no user interaction, unchanged scope, and high confidentiality/integrity/availability impact inside the container. The issue is a post-compromise escalation primitive only; it does not grant the initial command execution and does not by itself cross the container boundary. No CPE strings were provided, and the affected set is defined by AMQ Broker images built with the group-writable /etc/passwd condition.
Know when Red Hat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Local post-foothold escalation (AV:L); conditional on root-group membership and group-writable /etc/passwd (AC:H); attacker is a non-root in-container user, so PR:L rather than vendor's PR:H; full container compromise gives C/I/A High.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Cross-cluster remote code execution in Red Hat Advanced Cluster Management for Kubernetes 2 (multicloud-integrations / A
Cross-tenant bearer-token disclosure in Red Hat Advanced Cluster Management for Kubernetes 2 (RHACM) lets an authenticat
Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash
Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h
Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft
Elevated-privilege container restoration in CRI-O 1.34 and later, including downstream Red Hat OpenShift Container Platf
Unauthorized cross-tenant Secret and ConfigMap access in the multicloud-operators-channel component of Red Hat Advanced
Secret exfiltration across Kubernetes namespace boundaries in the multicloud-operators-subscription component of Red Hat
Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript
Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity
A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB