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 methods that add connectors. An authenticated attacker can craft a discovery URI that causes the VM transport's brokerConfig parameter to load a remote Spring XML application context via ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before BrokerService validates the configuration, this leads to arbitrary code execution on the JVM through bean factory methods such as Runtime.exec(). This vulnerability affects Apache ActiveMQ Broker versions prior to 5.19.5 and 6.2.3. Users are advised to upgrade to these fixed versions.
Potential Impact
An authenticated attacker can achieve arbitrary code execution on the Apache ActiveMQ Broker JVM by exploiting improper input validation in the Jolokia JMX-HTTP bridge. This can lead to full compromise of the broker process, potentially allowing control over messaging infrastructure and execution of malicious code within the broker environment.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.5 or 6.2.3, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated in the advisory. Patch status is confirmed by the vendor's recommendation to upgrade to these versions.
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
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 methods that add connectors. An authenticated attacker can craft a discovery URI that causes the VM transport's brokerConfig parameter to load a remote Spring XML application context via ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before BrokerService validates the configuration, this leads to arbitrary code execution on the JVM through bean factory methods such as Runtime.exec(). This vulnerability affects Apache ActiveMQ Broker versions prior to 5.19.5 and 6.2.3. Users are advised to upgrade to these fixed versions.
Potential Impact
An authenticated attacker can achieve arbitrary code execution on the Apache ActiveMQ Broker JVM by exploiting improper input validation in the Jolokia JMX-HTTP bridge. This can lead to full compromise of the broker process, potentially allowing control over messaging infrastructure and execution of malicious code within the broker environment.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.5 or 6.2.3, where this vulnerability is fixed. No other mitigation or temporary workaround is indicated in the advisory. Patch status is confirmed by the vendor's recommendation to upgrade to these versions.
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
Threat ID: 69d4bd49aaed68159afc7f6d
Added to database: 4/7/2026, 8:16:09 AM
Last enriched: 4/7/2026, 8:31:08 AM
Last updated: 4/9/2026, 7:17:11 AM
Views: 27
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.