Skip to main content

AMQ Broker CVE-2025-58712

MEDIUM
Incorrect Default Permissions (CWE-276)
2025-10-22 secalert@redhat.com
6.4
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain non-root command execution in container
  2. Delivery
    Confirm membership in root group (GID 0)
  3. Exploit
    Append UID 0 entry to group-writable /etc/passwd
  4. Execution
    Switch to crafted root account
  5. Impact
    Full 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 6.4 MEDIUM
AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.0 HIGH

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.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.4 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
enterprise messaging broker, limited to specific AMQ Broker container images
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-72526 CRITICAL
9.9 Aug 12

Cross-cluster remote code execution in Red Hat Advanced Cluster Management for Kubernetes 2 (multicloud-integrations / A

CVE-2026-70398 CRITICAL
9.6 Aug 12

Cross-tenant bearer-token disclosure in Red Hat Advanced Cluster Management for Kubernetes 2 (RHACM) lets an authenticat

CVE-2026-18663 MEDIUM
5.9 Aug 12

Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-4480 CRITICAL POC
9.0 May 26

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft

CVE-2026-92574 HIGH POC
8.8 Sep 21

Elevated-privilege container restoration in CRI-O 1.34 and later, including downstream Red Hat OpenShift Container Platf

CVE-2026-73122 HIGH
7.7 Aug 12

Unauthorized cross-tenant Secret and ConfigMap access in the multicloud-operators-channel component of Red Hat Advanced

CVE-2026-66878 HIGH
7.7 Aug 12

Secret exfiltration across Kubernetes namespace boundaries in the multicloud-operators-subscription component of Red Hat

CVE-2026-101258 HIGH POC
7.8 Oct 06

Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript

CVE-2026-96889 HIGH POC
7.8 Sep 23

Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity

CVE-2026-4775 HIGH POC
7.8 Mar 24

A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy