WaratekVRT Sign in

CVE-2026-42588

Affected software2 products, listed below
Severity8.1 High CVSS 3.1
Fixed in5.19.7, 6.2.6
WeaknessCode injection (CWE-94)
Published1 Jun 2026
Updated22 Jul 2026

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.

CWE-20 · Improper input validation

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 2 indexed Published artifacts you can open, in GitHub PoC; first seen 2026-06-04.
  • EPSS 0.74% chance in 30 days

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC strivepan/ActiveMQ-cve-2026-42588-scanner-gui 10 2026-06-04
GitHub PoC Store vulnerability POC files including CVE-2026-42588 Spring RCE xml payload 2026-06-18

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by The affected package being open source on Maven, so the fix can be read
Finding This CVE affects an open-source Java library published on Maven Central (Maven packages: org.apache.activemq:activemq-broker, org.apache.activemq:activemq-all, org.apache.activemq:apache-activemq), so it is squarely in ARMR's territory and the source needed to understand the defect is public. That makes it a candidate for an ARMR patch rule. No rule exists and none is scheduled: the diff between the affected and fixed versions has not been read, and a closer look may find no hook point ARMR can act on.

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.activemq:activemq-broker 0 5.19.7 unbounded
org.apache.activemq:activemq-broker 6.0.0 6.2.6 unbounded
org.apache.activemq:activemq-all 0 5.19.7 unbounded
org.apache.activemq:activemq-all 6.0.0 6.2.6 unbounded
org.apache.activemq:apache-activemq 0 5.19.7 unbounded
org.apache.activemq:apache-activemq 6.0.0 6.2.6 unbounded

Products and versions

5 products, 10 version entries
SourceVendorProductSchemeAffected versions
nvd apache activemq generic < 5.19.7 · ≥ 6.0.0 and < 6.2.6
nvd apache activemq broker generic < 5.19.7 · ≥ 6.0.0 and < 6.2.6
osv org.apache.activemq activemq-all generic < 5.19.7 · ≥ 6.0.0 and < 6.2.6
osv org.apache.activemq activemq-broker generic < 5.19.7 · ≥ 6.0.0 and < 6.2.6
osv org.apache.activemq apache-activemq generic < 5.19.7 · ≥ 6.0.0 and < 6.2.6

References

URLTags
https://github.com/apache/activemq PACKAGE
https://lists.apache.org/thread/ns0zktfo16s9ql2mmtqtlb6p6xcs45xm WEB
http://www.openwall.com/lists/oss-security/2026/05/31/18 WEB

Timeline

Published2026-06-01By the CVE Program.
NVD record modified2026-07-22NVD's own last-modified date for this record.