CVE-2025-58712
Amq: privilege escalation via excessive /etc/passwd permissions
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running apache activemq-artemis (versions: see the vendor advisory)
- Anyone running Red Hat RHEL-9 based Middleware Containers all versions
- Anyone running Red Hat AMQ Broker 7 all versions
Vulnerability facts
- Affected
- apache activemq-artemis; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 6.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- CWE
- CWE-276
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| apache activemq-artemis | — | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-9 based Middleware Containers | all versions | — | cvelist |
| Red Hat AMQ Broker 7 | all versions | — | cvelist |
| Red Hat AMQ Broker 7 | all versions | — | cvelist |
| Red Hat AMQ Broker 7 | all versions | — | cvelist |
| Red Hat AMQ Broker 7 | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58712. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58712.md Affected: apache activemq-artemis; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all… Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for apache activemq-artemis, Red Hat RHEL-9 based Middleware Containers, Red Hat AMQ Broker 7: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-58712 being exploited?
There is no confirmed exploitation: CVE-2025-58712 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58712?
Medium: CVSS 6.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-58712?
apache activemq-artemis; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat RHEL-9 based Middleware Containers all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions; Red Hat AMQ Broker 7 all versions.
Is there a fix for CVE-2025-58712?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-58712?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.