# CVE-2025-58712: Amq: privilege escalation via excessive /etc/passwd permissions

- Severity: Medium 6.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 13% of CVEs (2026-11-30)
- Published: 2025-10-22T18:19:06.763Z
- Modified: 2026-10-18T21:10:00.120Z
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- activemq-artemis: no versions given (not affected: before *)
- amq7/amq-broker-init-rhel9: no versions given (not affected: from 7.13.2-1 before *)
- amq7/amq-broker-rhel9: no versions given (not affected: from 7.13.2-1 before *)
- amq7/amq-broker-rhel9-operator: no versions given (not affected: from 7.13.2-1 before *)
- amq7/amq-broker-rhel9-operator-bundle: no versions given (not affected: from 7.13.2-1 before *)
- amq7-tech-preview/amq-broker-console-plugin-rhel9: no versions given (not affected: from 7.13.2-1 before *)
- amq7-tech-preview/amq-broker-jolokia-api-server-rhel9: no versions given (not affected: from 7.13.2-1 before *)
- amq-broker-init-rhel8: no versions given
- amq-broker-init-rhel9: no versions given
- amq-broker-rhel8: no versions given
- amq-broker-rhel9: no versions given

## References

- <https://access.redhat.com/errata/RHSA-2025:17562> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2025-58712> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2394418> (issue-tracking)

## Sources

- CVE List: [CVE-2025-58712](https://www.cve.org/CVERecord?id=CVE-2025-58712), CVE Terms of Use, modified 2026-03-06
- NVD: [CVE-2025-58712](https://nvd.nist.gov/vuln/detail/CVE-2025-58712), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-58712 · Whole record: https://cve.day/CVE-2025-58712.json · Rebuilt by cve.day 2026-11-25T22:59:06.722Z
