CVE-2025-58712: Incorrect Default Permissions in apache activemq-artemis
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.
AI Analysis
Technical Summary
CVE-2025-58712 is a container privilege escalation vulnerability identified in certain Apache ActiveMQ Artemis broker container images. The root cause is that during the container image build process, the /etc/passwd file is created with group-writable permissions. This misconfiguration allows any user who has command execution capabilities inside the container and is a member of the root group to modify the /etc/passwd file. By altering this file, the attacker can add a new user entry with any arbitrary user ID, including UID 0, which corresponds to the root user. This effectively grants the attacker full root privileges within the container environment. The vulnerability requires the attacker to already have a high privilege level (root group membership) and command execution inside the container, but does not require any user interaction. The CVSS 3.1 base score is 5.2 (medium), reflecting the need for high privileges and local access but the significant impact on integrity and potential availability. No known public exploits have been reported to date. This vulnerability highlights the importance of secure container image build practices, especially regarding file permissions on critical system files like /etc/passwd. Organizations deploying ActiveMQ Artemis in containerized environments should review their images and build pipelines to ensure proper file permissions and minimize group privileges. Patching or rebuilding images with corrected permissions is recommended once available.
Potential Impact
For European organizations, this vulnerability poses a risk primarily in containerized deployments of Apache ActiveMQ Artemis, which is widely used for messaging in enterprise middleware. If exploited, an attacker with access inside the container and root group membership can escalate privileges to root within the container, potentially allowing them to manipulate the broker or pivot to other containerized services. This could lead to data integrity issues, unauthorized message manipulation, and disruption of critical messaging infrastructure. While the vulnerability does not directly allow host-level compromise, improper container isolation or misconfigurations could enable further lateral movement. Organizations in sectors relying heavily on messaging middleware—such as finance, telecommunications, and manufacturing—may face operational disruptions or data breaches. The medium severity indicates a moderate but non-trivial risk, especially in environments where container security best practices are not fully enforced. The lack of known exploits reduces immediate risk but should not lead to complacency.
Mitigation Recommendations
1. Review and rebuild all Apache ActiveMQ Artemis container images to ensure /etc/passwd and other critical system files have secure, non-group-writable permissions during build time. 2. Limit root group membership inside containers to only absolutely necessary processes and users. 3. Implement strict container runtime security policies that restrict privilege escalation and monitor for unauthorized modifications to system files. 4. Use container image scanning tools to detect insecure file permissions and privilege configurations before deployment. 5. Employ container isolation best practices, including user namespaces and seccomp profiles, to reduce the impact of container-level privilege escalations. 6. Monitor container logs and audit trails for suspicious activities related to user or group modifications. 7. Stay updated with vendor patches or updated container images addressing this vulnerability and apply them promptly once available. 8. Consider adopting immutable container images and avoid running containers with unnecessary elevated privileges.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Italy
CVE-2025-58712: Incorrect Default Permissions in apache activemq-artemis
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.
AI-Powered Analysis
Technical Analysis
CVE-2025-58712 is a container privilege escalation vulnerability identified in certain Apache ActiveMQ Artemis broker container images. The root cause is that during the container image build process, the /etc/passwd file is created with group-writable permissions. This misconfiguration allows any user who has command execution capabilities inside the container and is a member of the root group to modify the /etc/passwd file. By altering this file, the attacker can add a new user entry with any arbitrary user ID, including UID 0, which corresponds to the root user. This effectively grants the attacker full root privileges within the container environment. The vulnerability requires the attacker to already have a high privilege level (root group membership) and command execution inside the container, but does not require any user interaction. The CVSS 3.1 base score is 5.2 (medium), reflecting the need for high privileges and local access but the significant impact on integrity and potential availability. No known public exploits have been reported to date. This vulnerability highlights the importance of secure container image build practices, especially regarding file permissions on critical system files like /etc/passwd. Organizations deploying ActiveMQ Artemis in containerized environments should review their images and build pipelines to ensure proper file permissions and minimize group privileges. Patching or rebuilding images with corrected permissions is recommended once available.
Potential Impact
For European organizations, this vulnerability poses a risk primarily in containerized deployments of Apache ActiveMQ Artemis, which is widely used for messaging in enterprise middleware. If exploited, an attacker with access inside the container and root group membership can escalate privileges to root within the container, potentially allowing them to manipulate the broker or pivot to other containerized services. This could lead to data integrity issues, unauthorized message manipulation, and disruption of critical messaging infrastructure. While the vulnerability does not directly allow host-level compromise, improper container isolation or misconfigurations could enable further lateral movement. Organizations in sectors relying heavily on messaging middleware—such as finance, telecommunications, and manufacturing—may face operational disruptions or data breaches. The medium severity indicates a moderate but non-trivial risk, especially in environments where container security best practices are not fully enforced. The lack of known exploits reduces immediate risk but should not lead to complacency.
Mitigation Recommendations
1. Review and rebuild all Apache ActiveMQ Artemis container images to ensure /etc/passwd and other critical system files have secure, non-group-writable permissions during build time. 2. Limit root group membership inside containers to only absolutely necessary processes and users. 3. Implement strict container runtime security policies that restrict privilege escalation and monitor for unauthorized modifications to system files. 4. Use container image scanning tools to detect insecure file permissions and privilege configurations before deployment. 5. Employ container isolation best practices, including user namespaces and seccomp profiles, to reduce the impact of container-level privilege escalations. 6. Monitor container logs and audit trails for suspicious activities related to user or group modifications. 7. Stay updated with vendor patches or updated container images addressing this vulnerability and apply them promptly once available. 8. Consider adopting immutable container images and avoid running containers with unnecessary elevated privileges.
Affected Countries
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- redhat
- Date Reserved
- 2025-09-03T15:20:52.036Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 68f92183732d1470b7fcdfeb
Added to database: 10/22/2025, 6:25:07 PM
Last enriched: 12/23/2025, 10:33:57 PM
Last updated: 2/7/2026, 9:41:43 AM
Views: 102
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-2080: Command Injection in UTT HiPER 810
HighCVE-2026-2079: Improper Authorization in yeqifu warehouse
MediumCVE-2026-1675: CWE-1188 Initialization of a Resource with an Insecure Default in brstefanovic Advanced Country Blocker
MediumCVE-2026-1643: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in ariagle MP-Ukagaka
MediumCVE-2026-1634: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in alexdtn Subitem AL Slider
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.