Medium severity · published Oct 22, 2025
CVE-2025-58712
Amq: privilege escalation via excessive /etc/passwd permissions
6.4
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 10% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RB
RHEL-9 based Middleware Containers · Red Hat
All versions, or not specified · source: vendor
RH
Red Hat AMQ Broker 7 · Red Hat
All versions, or not specified · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-58712
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-58712
access.redhat.com
https://access.redhat.com/errata/RHSA-2025:17562
access.redhat.com
https://access.redhat.com/security/cve/CVE-2025-58712
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2394418
More from Red Hat AMQ Broker 7
9.1
CVE-2026-2332
HTTP Request Smuggling via Chunked Extension Quoted-String Parsing
8.3
CVE-2026-0603
Org.hibernate/hibernate-core: hibernate: information disclosure and data deletion via second-order sql injection
8.1
CVE-2026-84218
Org.jolokia/jolokia-core: incomplete jndi denylist in jolokia jsr-160 proxy (bypass of cve-2018-1000130 fix)
7.5
CVE-2026-93565
Io.netty/netty-codec-http: netty rtspdecoder method-token smuggling via trailing control byte
7.5
CVE-2026-93564
Io.netty/netty-codec-haproxy: netty: haproxy proxy-v2 nested-tlv grandchild bytebuf reference-count leak (incomplete fix of pr #16881)
