CVE-2026-42588Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | activemq | Fix pending | UBUNTU-CVE-2026-42588 | |
| Ubuntu 26.04 | activemq | Under investigation | UBUNTU-CVE-2026-42588 | |
| Ubuntu 25.10 | activemq | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-42588 | |
| Ubuntu 24.04 | activemq | Under investigation | UBUNTU-CVE-2026-42588 | |
| Ubuntu 22.04 | activemq | Fix pending | UBUNTU-CVE-2026-42588 | |
| Ubuntu 20.04 | activemq | Fix pending | UBUNTU-CVE-2026-42588 | |
| Ubuntu 18.04 | activemq | Fix pending | UBUNTU-CVE-2026-42588 | |
| Ubuntu 16.04 | activemq | Fix pending | UBUNTU-CVE-2026-42588 | |
| Debian 13 | activemq | Fix pending | DEBIAN-CVE-2026-42588 | |
| Debian 12 | activemq | Fix pending | DEBIAN-CVE-2026-42588 | |
| Maven library | org.apache.activemq:activemq-all | Fixed | 6.2.6 | GHSA-hg6c-8mvr-jqc9 |
| Maven library | org.apache.activemq:activemq-broker | Fixed | 6.2.6 | GHSA-hg6c-8mvr-jqc9 |
| Maven library | org.apache.activemq:apache-activemq | Fixed | 5.19.7 | GHSA-hg6c-8mvr-jqc9 |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache ActiveMQ Broker: affected: before 5.19.7, 6.0.0 to before 6.2.6; fixed in
5.19.7,6.2.6 - Apache Software Foundation Apache ActiveMQ All: affected: before 5.19.7, 6.0.0 to before 6.2.6; fixed in
5.19.7,6.2.6 - Apache Software Foundation Apache ActiveMQ: affected: before 5.19.7, 6.0.0 to before 6.2.6; fixed in
5.19.7,6.2.6
Vendor advisories:
- https://lists.apache.org/thread/ns0zktfo16s9ql2mmtqtlb6p6xcs45xm (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.