Apache Software Foundation Apache ActiveMQ Broker
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via Jolokia addNetworkConnector
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.19.7
- >= 6.0.0, < 6.2.6
Fixed in 5.19.7, 6.2.6
- < 5.19.7
- >= 6.0.0, < 6.2.6
Fixed in 5.19.7, 6.2.6
- < 5.19.7
- >= 6.0.0, < 6.2.6
Fixed in 5.19.7, 6.2.6
Mitigation
Upgrade Apache ActiveMQ Broker to 5.19.7 or 6.2.6 or later.
Upgrade Apache ActiveMQ All to 5.19.7 or 6.2.6 or later.
Upgrade Apache ActiveMQ to 5.19.7 or 6.2.6 or later.
References
- Vendor advisory lists.apache.org/thread/ns0zktfo16s9ql2mmtqtlb6p6xcs…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending · 2 informational · 1 not a PoC
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| strivepan/ActiveMQ-cve-2026-42588-scanner-gui | 4 Jun 2026 +3.4 d | 10 | Pending · mkdir /quarantine/strivepan__ActiveMQ-cve-2026-42588-scanner-gui-eab49c907645: permission denied |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Catherines77/ActiveMQ-EXPtools | 20 Apr 2026 −42 d | 86 | Informational · list |
| dinosn/apache-activemq-rce-research | 4 Jul 2026 +33 d | 9 | Informational · list |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gentleman567/POC | 18 Jun 2026 +17 d | 0 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.