CVE-2025-58712 Amq: privilege escalation via excessive /etc/passwd permissions
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Red Hat
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.
Upgrade path
2 packages: 1 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat amq broker | All versions | No fix listed | No fix yet |
| redhat rhosemc | < 7.13.2-1 | 7.13.2-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat rhosemc | < 7.13.2-1 | 7.13.2-1 |
| redhat amq broker | All versions | No fix listed |
References
- RHSA-2025:17562 vendor-advisory
- access.redhat.com vdb-entry
- RHBZ#2394418 issue-tracking