๐Ÿ” CVE Alert

CVE-2025-58712

MEDIUM 6.4

Amq: privilege escalation via excessive /etc/passwd permissions

CVSS Score
6.4
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-276
Vendor apache
Product activemq-artemis
Ecosystems
Industries
Technology
Published Oct 22, 2025
Last Updated Mar 6, 2026
Stay Ahead of the Next One

Get instant alerts for apache activemq-artemis

Be the first to know when new medium vulnerabilities affecting apache activemq-artemis are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack Vector
Local
Attack Complexity
High
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Affected Versions

apache / activemq-artemis
All versions affected
Red Hat / RHEL-9 based Middleware Containers
All versions affected
Red Hat / RHEL-9 based Middleware Containers
All versions affected
Red Hat / RHEL-9 based Middleware Containers
All versions affected
Red Hat / RHEL-9 based Middleware Containers
All versions affected
Red Hat / RHEL-9 based Middleware Containers
All versions affected
Red Hat / RHEL-9 based Middleware Containers
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
Red Hat / Red Hat AMQ Broker 7
All versions affected

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
access.redhat.com: https://access.redhat.com/errata/RHSA-2025:17562 access.redhat.com: https://access.redhat.com/security/cve/CVE-2025-58712 bugzilla.redhat.com: https://bugzilla.redhat.com/show_bug.cgi?id=2394418

Credits

Red Hat would like to thank Antony Di Scala and Mike Whale for reporting this issue.