RCE in Apache Activemq
CVE-2026-34197
Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, 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) and BrokerService.addConnector(String).
An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter to load a remote 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.4, from 6.0.0 before 6.2.3; Apache ActiveMQ All: before 5.19.4, from 6.0.0 before 6.2.3; Apache ActiveMQ: before 5.19.4, from 6.0.0 before 6.2.3.
Users are recommended to upgrade to version 5.19.4 or 6.2.3, which fixes the issue
Vulnerability class: Drupalgeddon 2 (CVE-2018-7600)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.983, 99.9th percentile (scored ); up from 0.155 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.155 · newest: 0.983 · change: +0.828
Affected products
- Apache Activemq
- Apache Activemq Broker
- Apache Software Foundation Activemq — versions 0, 6.0.0
- Apache Software Foundation Activemq All — versions 0, 6.0.0
- Apache Software Foundation Activemq Broker — versions 0, 6.0.0
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
Required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Browse the full CISA KEV catalog with PoC counts, Metasploit modules and EPSS.
Public exploits and proof-of-concept code
Metasploit modules
19 public repositories with exploit or proof-of-concept code for this CVE:
- dinosn/apache-activemq-rce-research (9 stars, last pushed 2026-07-04): Apache ActiveMQ Classic RCE research: CVE-2026-34197 / CVE-2026-42588 bypass chain + hardened-6.2.6 audit findings + Crowdfense comparison
- dinosn/CVE-2026-34197 (8 stars, last pushed 2026-04-08): CVE-2026-34197 activemq PoC
- DEVSECURITYSPRO/CVE-2026-34197 (4 stars, last pushed 2026-04-08): CVE-2026-34197 - Apache ActiveMQ RCE via Jolokia Endpoint PoC
- K3ysTr0K3R/CVE-2026-34197 (3 stars, last pushed 2026-07-16): CVE-2026-34197 - Apache ActiveMQ Jolokia Remote Code Execution (RCE)
- keraattin/CVE-2026-34197 (2 stars, last pushed 2026-04-14): CVE-2026-34197: Apache ActiveMQ Classic RCE via Jolokia API (CVSS 8.8). Python & Nmap NSE detection scripts. A 13-year-old vulnerability allows remote code execution through the addNetworkConnector M…
- KONDORDEVSECURITYCORP/CVE-2026-34197 (2 stars, last pushed 2026-04-13): CVE-2026-34197 — Apache ActiveMQ RCE via Jolokia API | PoC Exploit
- AtoposX-J/CVE-2026-34197-Apache-ActiveMQ-RCE (2 stars, last pushed 2026-04-09): CVE-2026-34197
- hnytgl/CVE-2026-34197 (1 star, last pushed 2026-06-06): 这是一个面向防守和内网排查的 Apache ActiveMQ Classic 暴露面检测工具,用于辅助评估 CVE-2026-34197 相关风险。
- hnytgl/cve-2026-34197 (1 star, last pushed 2026-05-31)
- xshysjhq/CVE-2026-34197-payload-Apache-ActiveMQ- (1 star, last pushed 2026-04-20)
9 more are listed on the interactive page.
Also mentioned in 1 other repository (Catherines77/ActiveMQ-EXPtools). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt (vendor-advisory, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/04/06/3 (Mailing List, Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog (US Government Resource)
- access.redhat.com/security/cve/CVE-2026-34197 (Third Party Advisory)
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34197.json (Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.