CVE-2025-58712
Amq: privilege escalation via excessive /etc/passwd permissions
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Timeline
ID reserved
By redhat
- 49 days later
· 49 days later
Published
- 5 months later
· 5 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | Medium6.4 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.21% · top 89% of all CVEs (7 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.4.
Weakness
Affected products
- unaffected < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · RHEL-9 based Middleware Containers
- unaffected 7.13.2-1 – < *
Red Hat · Red Hat AMQ Broker 7
All versions: affected
Red Hat · Red Hat AMQ Broker 7
All versions: affected
Red Hat · Red Hat AMQ Broker 7
All versions: affected
Red Hat · Red Hat AMQ Broker 7
All versions: affected
References (3)
- RHSA-2025:17562 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-58712 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2394418 (opens in a new tab)issue-trackingx_refsource_REDHAT
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2025-58712)Record last updated .