CVEfocus › CVE database › CVE-2026-42588

CVE-2026-42588Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via…

CVSS 8.1 HighEPSS 0.7% (higher than 46% of CVEs)Published 2026-06-01Updated 2026-06-02Assigner: apache

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.

CWE-20CWE-94

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

3Fixed
7Fix pending
2Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10activemqFix pendingUBUNTU-CVE-2026-42588
Ubuntu 26.04activemqUnder investigationUBUNTU-CVE-2026-42588
Ubuntu 25.10activemqWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-42588
Ubuntu 24.04activemqUnder investigationUBUNTU-CVE-2026-42588
Ubuntu 22.04activemqFix pendingUBUNTU-CVE-2026-42588
Ubuntu 20.04activemqFix pendingUBUNTU-CVE-2026-42588
Ubuntu 18.04activemqFix pendingUBUNTU-CVE-2026-42588
Ubuntu 16.04activemqFix pendingUBUNTU-CVE-2026-42588
Debian 13activemqFix pendingDEBIAN-CVE-2026-42588
Debian 12activemqFix pendingDEBIAN-CVE-2026-42588
Maven libraryorg.apache.activemq:activemq-allFixed6.2.6GHSA-hg6c-8mvr-jqc9
Maven libraryorg.apache.activemq:activemq-brokerFixed6.2.6GHSA-hg6c-8mvr-jqc9
Maven libraryorg.apache.activemq:apache-activemqFixed5.19.7GHSA-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.

Vendor advisories:

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.