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/ on the web console, with a default access policy allowing exec operations on all ActiveMQ MBeans. An authenticated attacker can exploit this by sending a specially crafted discovery URI that triggers the VM transport's brokerConfig parameter to load a remote Spring XML application context using ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before 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. Red Hat advisories confirm that their products are unaffected as the vulnerable components are not included in shipped products.
Potential Impact
An authenticated attacker can achieve remote code execution on the Apache ActiveMQ Broker's JVM by exploiting this vulnerability. This allows execution of arbitrary operating system commands, potentially leading to full compromise of the broker, including confidentiality, integrity, and availability impacts. The attacker can bypass configuration validation and load malicious remote Spring XML contexts, resulting in unauthorized code execution. Red Hat notes that their products are unaffected due to exclusion of the vulnerable components in shipped products.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.4 or 6.2.3, which contain fixes for this vulnerability. Red Hat products are not affected as the vulnerable components are not included in their shipped products, so no action is required for Red Hat users. No other mitigations are currently available or meet Red Hat's criteria for ease of use and applicability.
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
Apache Software Foundation
Apache ActiveMQ Broker
Apache Software Foundation
Apache ActiveMQ All
Apache Software Foundation
Apache ActiveMQ
pkg:maven/org.apache.activemq/activemq-brokerpkg:maven/Apache Software Foundation/org.apache.activemq:activemq-brokerpkg:maven/Apache Software Foundation/org.apache.activemq:activemq-allpkg:maven/Apache Software Foundation/org.apache.activemq:apache-activemqRun 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/ on the web console, with a default access policy allowing exec operations on all ActiveMQ MBeans. An authenticated attacker can exploit this by sending a specially crafted discovery URI that triggers the VM transport's brokerConfig parameter to load a remote Spring XML application context using ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before 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. Red Hat advisories confirm that their products are unaffected as the vulnerable components are not included in shipped products.
Potential Impact
An authenticated attacker can achieve remote code execution on the Apache ActiveMQ Broker's JVM by exploiting this vulnerability. This allows execution of arbitrary operating system commands, potentially leading to full compromise of the broker, including confidentiality, integrity, and availability impacts. The attacker can bypass configuration validation and load malicious remote Spring XML contexts, resulting in unauthorized code execution. Red Hat notes that their products are unaffected due to exclusion of the vulnerable components in shipped products.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.4 or 6.2.3, which contain fixes for this vulnerability. Red Hat products are not affected as the vulnerable components are not included in their shipped products, so no action is required for Red Hat users. No other mitigations are currently available or meet Red Hat's criteria for ease of use and applicability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-03-26T14:51:21.456Z
- State
- PUBLISHED
- 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: 08/17/2026, 13:17:20 UTC
Last updated: 09/14/2026, 10:01:30 UTC
Views: 653
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.