CVE-2026-42588 Details
Description
Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including BrokerService.addNetworkConnector(String). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a Spring XML application context using ResourceXmlApplicationContext. Because Spring's ResourceXmlApplicationContext instantiates all singleton beans before the BrokerService validates the configuration, arbitrary code execution occurs on the broker's JVM through bean factory methods such as Runtime.exec(). This issue affects Apache ActiveMQ Broker: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
A code injection vulnerability allowing remote code execution has been identified in Apache ActiveMQ Broker, ActiveMQ All, and ActiveMQ Classic. This issue arises from improper input validation and control over code generation. The Jolokia JMX-HTTP bridge is exposed by default on the web console, and the access policy allows execution operations on all ActiveMQ MBeans. An authenticated attacker can exploit this by sending a crafted discovery URI that triggers the VM transport's brokerConfig parameter, using the 'masterslave://' URL to load a Spring XML application context. This exploitation occurs because Spring's ResourceXmlApplicationContext instantiates singleton beans before the BrokerService can validate the configuration, leading to arbitrary code execution on the broker's JVM through methods like Runtime.exec().
Users are advised to upgrade to Apache ActiveMQ versions 5.19.7 or 6.2.6, which address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 1, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2026/05/31/18 | CVE | Mailing ListThird Party Advisory |
| https://lists.apache.org/thread/ns0zktfo16s9ql2mmtqtlb6p6xcs45xm | [email protected] | Mailing ListVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-20 | Improper Input Validation | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apache activemq | < 5.19.7 >= 6.0.0, < 6.2.6 |
CPE
Remediation
| |
| apache activemq broker | < 5.19.7 >= 6.0.0, < 6.2.6 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 22, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | Initial Analysis | [email protected] |
| Jun 1, 2026 | CVE Modified | CISA-ADP |
| Jun 1, 2026 | New CVE Received | [email protected] |
| Jun 1, 2026 | CVE Modified | CVE |