Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Apache ActiveMQ RCE via Jolokia addNetworkConnector

Disclosed
Apr 29, 2026
Created
May 29, 2026

Description

Apache ActiveMQ exposes a Jolokia JMX-over-HTTP API at /api/jolokia/.
An authenticated attacker can invoke the addNetworkConnector() MBean
operation with a crafted URI that causes the broker to fetch a remote
Spring XML configuration over HTTP. The Spring XML instantiates a
ProcessBuilder bean that executes attacker-supplied OS commands.

Default credentials (admin:admin) are accepted by many installations.

Verified on docker image

Authors

dinosn
h00die

Platform

Linux,Unix,Windows

Architectures

cmd

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/multi/http/apache_activemq_jolokia_rce
msf exploit(apache_activemq_jolokia_rce) > show targets
...targets...
msf exploit(apache_activemq_jolokia_rce) > set TARGET < target-id >
msf exploit(apache_activemq_jolokia_rce) > show options
...show and set options...
msf exploit(apache_activemq_jolokia_rce) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.