CVE-2026-42588: 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 All, 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). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
AI Analysis
Technical Summary
Apache ActiveMQ Broker versions prior to 5.19.7 and from 6.0.0 before 6.2.6 expose a Jolokia JMX-HTTP bridge with a default policy permitting exec operations on all ActiveMQ MBeans, including BrokerService.addNetworkConnector(String). An authenticated attacker can supply a crafted discovery URI using the "masterslave://" URL scheme that triggers the brokerConfig parameter to load a Spring XML application context via ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before BrokerService validates the configuration, this allows arbitrary code execution on the JVM through bean factory methods such as Runtime.exec(). This improper input validation and control of code generation vulnerability is tracked as CWE-20 and CWE-94.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary code on the broker's JVM, potentially leading to full compromise of the ActiveMQ Broker process. This could enable unauthorized actions within the messaging infrastructure, impacting confidentiality, integrity, and availability of messaging services.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.7 or 6.2.6, which contain fixes for this vulnerability. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed beyond the recommendation to upgrade; therefore, verify with the vendor advisory for the latest remediation guidance.
CVE-2026-42588: 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 All, 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). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
CVSS v3.1
Score 8.1high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Apache ActiveMQ Broker versions prior to 5.19.7 and from 6.0.0 before 6.2.6 expose a Jolokia JMX-HTTP bridge with a default policy permitting exec operations on all ActiveMQ MBeans, including BrokerService.addNetworkConnector(String). An authenticated attacker can supply a crafted discovery URI using the "masterslave://" URL scheme that triggers the brokerConfig parameter to load a Spring XML application context via ResourceXmlApplicationContext. Because Spring instantiates all singleton beans before BrokerService validates the configuration, this allows arbitrary code execution on the JVM through bean factory methods such as Runtime.exec(). This improper input validation and control of code generation vulnerability is tracked as CWE-20 and CWE-94.
Potential Impact
Successful exploitation allows an authenticated attacker to execute arbitrary code on the broker's JVM, potentially leading to full compromise of the ActiveMQ Broker process. This could enable unauthorized actions within the messaging infrastructure, impacting confidentiality, integrity, and availability of messaging services.
Mitigation Recommendations
Users should upgrade Apache ActiveMQ Broker to version 5.19.7 or 6.2.6, which contain fixes for this vulnerability. No other official remediation or temporary fixes are documented. Patch status is not explicitly confirmed beyond the recommendation to upgrade; therefore, verify with the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- apache
- Date Reserved
- 2026-04-28T20:59:40.750Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1d4e75e29bf47b50cd49fe
Added to database: 6/1/2026, 9:18:45 AM
Last enriched: 6/1/2026, 9:35:48 AM
Last updated: 6/2/2026, 4:47:40 AM
Views: 15
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.