CVE-2026-34197: CWE-20 Improper Input Validation in Apache Software Foundation Apache ActiveMQ Broker
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 Analysis
Technical Summary
Apache ActiveMQ Broker exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ with a default access policy permitting exec operations on all ActiveMQ MBeans, including BrokerService.addNetworkConnector(String) and BrokerService.addConnector(String). An authenticated attacker can exploit this by providing a crafted discovery URI that triggers the VM transport's brokerConfig parameter to load a remote Spring XML application context. Because Spring's ResourceXmlApplicationContext instantiates all singleton beans before the BrokerService validates the configuration, this leads to arbitrary code execution on the broker's JVM through bean factory methods such as Runtime.exec(). This vulnerability affects Apache ActiveMQ Broker versions before 5.19.4 and from 6.0.0 before 6.2.3. The issue is fixed in versions 5.19.4 and 6.2.3.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary code on the JVM running the Apache ActiveMQ Broker. This can lead to full compromise of the broker service, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
A fix is available. Users are strongly advised to upgrade Apache ActiveMQ Broker to version 5.19.4 or 6.2.3, which address this vulnerability. No alternative mitigations or temporary fixes are documented in the vendor advisory. Patch status is confirmed by the vendor advisory. There is no indication that this is a cloud service; therefore, manual upgrade is required.
CVE-2026-34197: CWE-20 Improper Input Validation in Apache Software Foundation Apache ActiveMQ Broker
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
CVSS v3.1
Score 8.8high
Affected software
pkg:maven/org.apache.activemq/activemq-brokerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Apache ActiveMQ Broker exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ with a default access policy permitting exec operations on all ActiveMQ MBeans, including BrokerService.addNetworkConnector(String) and BrokerService.addConnector(String). An authenticated attacker can exploit this by providing a crafted discovery URI that triggers the VM transport's brokerConfig parameter to load a remote Spring XML application context. Because Spring's ResourceXmlApplicationContext instantiates all singleton beans before the BrokerService validates the configuration, this leads to arbitrary code execution on the broker's JVM through bean factory methods such as Runtime.exec(). This vulnerability affects Apache ActiveMQ Broker versions before 5.19.4 and from 6.0.0 before 6.2.3. The issue is fixed in versions 5.19.4 and 6.2.3.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary code on the JVM running the Apache ActiveMQ Broker. This can lead to full compromise of the broker service, including confidentiality, integrity, and availability impacts. The CVSS v3.1 base score is 8.8, reflecting high impact on confidentiality, integrity, and availability with network attack vector, low attack complexity, and no user interaction required.
Mitigation Recommendations
A fix is available. Users are strongly advised to upgrade Apache ActiveMQ Broker to version 5.19.4 or 6.2.3, which address this vulnerability. No alternative mitigations or temporary fixes are documented in the vendor advisory. Patch status is confirmed by the vendor advisory. There is no indication that this is a cloud service; therefore, manual upgrade is required.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-03-26T14:51:21.456Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-34197","vendor":"Red Hat"}]
Threat ID: 69d4bd49aaed68159afc7f6d
Added to database: 04/07/2026, 08:16:09 UTC
Last enriched: 07/15/2026, 09:01:46 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 623
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.