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

Published Sep 10, 2025
·
Updated

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.

Other sources

The /etc/passwd file is created during build time with group-writable permissions. In certain conditions, an attacker who can execute commands within an affected container, even as a non-root user, may be able to 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.

Red Hat

Affected Software

1 affected component
Red Hat AMQ Broker

Event History

Sep 10, 2025
Data Sourced
via Red Hat·05:32 PM
DescriptionSeverityAffected Software
Oct 22, 2025
CVE Published
via MITRE·06:19 PM
Data Sourced
via MITRE·06:19 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness
Feb 7, 58149
Event
via MITRE·03:49 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-58712?

CVE-2025-58712 is classified as a privilege escalation vulnerability affecting certain AMQ Broker images.

2

How do I fix CVE-2025-58712?

To fix CVE-2025-58712, you must update the affected AMQ Broker images to versions that do not have group-writable permissions on the /etc/passwd file.

3

What are the potential impacts of CVE-2025-58712?

The potential impacts of CVE-2025-58712 include unauthorized privilege escalation within the affected container, allowing an attacker to execute commands with elevated permissions.

4

Which software is affected by CVE-2025-58712?

CVE-2025-58712 affects Red Hat AMQ Broker images where the /etc/passwd file has been improperly created.

5

Can an attacker exploit CVE-2025-58712 from outside the container?

No, an attacker must have the ability to execute commands within the affected container to exploit CVE-2025-58712.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203