CVE-2026-42588

HIGH

Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via Jolokia addNetworkConnector

Title source: cna
STIX 2.1

Exploitation Summary

EIP tracks 3 public exploits for CVE-2026-42588. PoCs published by hnytgl, strivepan, gentleman567.

AI-analyzed exploit summary This repository contains a functional exploit for CVE-2026-42588, targeting Apache ActiveMQ's Jolokia interface to achieve remote code execution via crafted Spring XML payloads. The exploit includes detection, payload generation, and execution capabilities.

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.

Exploits (3)

github WORKING POC 1 stars
by hnytgl · pythonpoc
https://github.com/hnytgl/CVE-2026-42588

This repository contains a functional exploit for CVE-2026-42588, targeting Apache ActiveMQ's Jolokia interface to achieve remote code execution via crafted Spring XML payloads. The exploit includes detection, payload generation, and execution capabilities.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Apache ActiveMQ < 5.19.7 / 6.0.0 <= version < 6.2.6
Auth required
Prerequisites: Jolokia interface accessible · Valid Web Console credentials (default: admin/admin)
devstral-2 · analyzed Jun 06, 2026 Full analysis →
github SUSPICIOUS 1 stars
by strivepan · poc
https://github.com/strivepan/ActiveMQ-cve-2026-42588-scanner-gui

The repository claims to be a GUI scanner/exploit for CVE-2026-42588 but lacks actual exploit code, instead providing vague instructions for VPS setup and DNSLog verification. No technical details about the vulnerability or exploit mechanics are included.

Classification
Suspicious 90%
Attack Type
Rce
Complexity
Theoretical
Reliability
Theoretical
Target: Apache ActiveMQ (5.x < 5.19.4, 6.0.0 ≤ 6.x < 6.2.3)
No auth needed
Prerequisites: VPS or DNSLog access
devstral-2 · analyzed Jun 04, 2026 Full analysis →
github WORKING POC
by gentleman567 · poc
https://github.com/gentleman567/POC

This PoC exploits a Spring Framework vulnerability (CVE-2026-42588) by leveraging MethodInvokingFactoryBean to execute arbitrary commands via Runtime.exec(). The XML configuration demonstrates a direct path to RCE by invoking 'touch /tmp/activemq_pwned'.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Spring Framework (unspecified version)
No auth needed
Prerequisites: Spring application with vulnerable bean configuration parsing
devstral-2 · analyzed Jun 18, 2026 Full analysis →

References (2)

Core 2

Scores

CVSS v3 8.1
EPSS 0.0040
EPSS Percentile 32.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-20 CWE-94
Status published
Products (8)
apache/activemq < 5.19.7
apache/activemq_broker < 5.19.7
Apache Software Foundation/Apache ActiveMQ < 5.19.7
Apache Software Foundation/Apache ActiveMQ 6.0.0 - 6.2.6
Apache Software Foundation/Apache ActiveMQ All < 5.19.7
Apache Software Foundation/Apache ActiveMQ All 6.0.0 - 6.2.6
Apache Software Foundation/Apache ActiveMQ Broker < 5.19.7
Apache Software Foundation/Apache ActiveMQ Broker 6.0.0 - 6.2.6
Published Jun 01, 2026
Tracked Since Jun 01, 2026