CVE-2025-58712 json
Amq: privilege escalation via excessive /etc/passwd permissions
published 2025-10-22 12 mo ago modified 2026-10-18 21 d ago also EUVD-2025-35622
- cvss
- 6.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
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.
Patch / fix
- Red Hat RHEL-9 based Middleware Containers 7.13.2-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-58712 updated cvss 6.4
amq: privilege escalation via excessive /etc/passwd permissions
-
Red Hat AMQ Broker 7 amq-broker-rhel8 amq-broker-rhel8, amq-broker-rhel9 amq-broker-rhel9, amq-broker-init-rhel8 amq-broker-init-rhel8, amq-broker-init-rhel9 amq-broker-init-rhel9affected: no fix available, no fix planned “Will not fix”
-
Red Hat Middleware Containers for Openshift amq7/amq-broker-rhel9 7.13.2-1, amq7/amq-broker-init-rhel9 7.13.2-1, amq7/amq-broker-rhel9-operator 7.13.2-1, amq7/amq-broker-rhel9-operator-bundle 7.13.2-1, amq7-tech-preview/amq-broker-console-plugin-rhel9 7.13.2-1, amq7-tech-preview/amq-broker-jolokia-api-server-rhel9 7.13.2-1fixed: vendor fix RHSA-2025:17562
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 12 mo ago
Exploit prediction
0.21% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected products
- apache activemq-artemis
- Red Hat RHEL-9 based Middleware Containers
- Red Hat Red Hat AMQ Broker 7
Classification
- Weakness
-
- CWE-276 Incorrect Default Permissions
References
-
access.redhat.com
/errata/RHSA-2025:17562
vendor-advisory
-
access.redhat.com
/security/cve/CVE-2025-58712
vdb-entry
-
bugzilla.redhat.com
/show_bug.cgi?id=2394418
issue-tracking
Sources
- CVE List CVE-2025-58712
- NVD CVE-2025-58712
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.