CVE-2026-34197
Description
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
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.apache.activemq:activemq-brokerMaven | < 5.19.5 | 5.19.5 |
org.apache.activemq:activemq-brokerMaven | >= 6.0.0, < 6.2.3 | 6.2.3 |
org.apache.activemq:activemq-allMaven | < 5.19.5 | 5.19.5 |
org.apache.activemq:activemq-allMaven | >= 6.0.0, < 6.2.3 | 6.2.3 |
Affected products
9- osv-coords7 versionspkg:apk/chainguard/apache-activemq-6.2pkg:apk/chainguard/apache-activemq-fips-6.2pkg:apk/chainguard/geoserver-2.27-communitypkg:apk/chainguard/geoserver-2.28-communitypkg:bitnami/activemqpkg:maven/org.apache.activemq/activemq-allpkg:maven/org.apache.activemq/activemq-broker
< 6.2.4-r0+ 6 more
- (no CPE)range: < 6.2.4-r0
- (no CPE)range: < 6.2.4-r0
- (no CPE)range: < 2.27.5-r3
- (no CPE)range: < 2.28.3-r1
- (no CPE)range: < 5.19.4
- (no CPE)range: < 5.19.5
- (no CPE)range: < 5.19.5
Patches
Vulnerability mechanics
References
5- www.openwall.com/lists/oss-security/2026/04/06/3nvdMailing ListThird Party AdvisoryWEB
- activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txtnvdVendor AdvisoryWEB
- github.com/advisories/GHSA-rxpj-7qvf-xv32ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-34197ghsaADVISORY
- www.cisa.gov/known-exploited-vulnerabilities-catalognvdUS Government ResourceWEB
News mentions
5- Weekly Metasploit Update: Apache ActiveMQ RCE, Gogs Rebase RCE, and Windows Kernel Pointer EnumRapid7 Blog · Jun 5, 2026
- AI Threat Landscape Digest March-April 2026Check Point Research · May 26, 2026
- ThreatsDay Bulletin: $290M DeFi Hack, macOS LotL Abuse, ProxySmart SIM Farms +25 New StoriesThe Hacker News · Apr 23, 2026
- 20th April – Threat Intelligence ReportCheck Point Research · Apr 20, 2026
- Claude Discovers Apache ActiveMQ Bug Hidden for 13 YearsInfosecurity Magazine · Apr 8, 2026