CVE-2025-58712

Amq: privilege escalation via excessive /etc/passwd permissions

Published Oct 22, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L'}

cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title amq: privilege escalation via excessive /etc/passwd permissions Amq: privilege escalation via excessive /etc/passwd permissions
First Time appeared Redhat
Redhat amq Broker
Redhat rhosemc
CPEs cpe:/a:redhat:amq_broker:7
cpe:/a:redhat:rhosemc:1.0::el9
Vendors & Products Redhat
Redhat amq Broker
Redhat rhosemc
References
Type Values Removed Values Added
Description No description is available for this CVE.
Title amq: privilege escalation via excessive /etc/passwd permissions
Weaknesses CWE-276
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:L'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Mar 6, 2026, 11:45 PM
Reserved
Sep 3, 2025, 3:20 PM
Status
Deferred
Published
Oct 22, 2025, 7:15 PM
Modified
Oct 18, 2026, 9:10 PM
Severity
Moderate
Public date
Oct 7, 2025, 2:26 PM