Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 81%

CVE-2026-42588: CWE-20 Improper Input Validation in Apache Software Foundation Apache ActiveMQ Broker

0
High
VulnerabilityCVE-2026-42588cvecve-2026-42588cwe-20cwe-94
Published: Mon Jun 01 2026 (06/01/2026, 07:23:17 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/01/2026, 09:35:48 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses