Loading...
Skip to main content

CVE-2026-42588 — Vulnerability in...

HIGH

Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue

Published June 1, 2026Updated September 10, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published June 1, 2026 (133 days ago).
  • Last revised September 10, 2026 — 101 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.activemq:apache-activemq to 6.2.6 or later
<!-- Update pom.xml dependency version to 6.2.6 for org.apache.activemq:apache-activemq -->
Maven
Update org.apache.activemq:activemq-all to 5.19.7 or later
<!-- Update pom.xml dependency version to 5.19.7 for org.apache.activemq:activemq-all -->
Maven
Update org.apache.activemq:activemq-broker to 5.19.7 or later
<!-- Update pom.xml dependency version to 5.19.7 for org.apache.activemq:activemq-broker -->
Maven
Update org.apache.activemq:activemq-all to 6.2.6 or later
<!-- Update pom.xml dependency version to 6.2.6 for org.apache.activemq:activemq-all -->
Maven
Update org.apache.activemq:activemq-broker to 6.2.6 or later
<!-- Update pom.xml dependency version to 6.2.6 for org.apache.activemq:activemq-broker -->
Maven
Update org.apache.activemq:apache-activemq to 5.19.7 or later
<!-- Update pom.xml dependency version to 5.19.7 for org.apache.activemq:apache-activemq -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: maven (3).

PackageEcosystemAffectedFixed In
org.apache.activemq:apache-activemq
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:activemq-all
maven
4.1.2, 5.0.0, 5.1.0, 5.10.0 (+87 more)5.19.7
org.apache.activemq:activemq-broker
maven
5.10.0, 5.10.1, 5.10.2, 5.11.0 (+72 more)5.19.7
org.apache.activemq:activemq-all
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:activemq-broker
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:apache-activemq
maven
4.1.1, 4.1.2, 5.0.0, 5.1.0 (+88 more)5.19.7

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.1 score means for each attack dimension.

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

Frequently Asked Questions

What is CVE-2026-42588?
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.1/10).
How do I check if my project is affected by CVE-2026-42588?
CVE-2026-42588 affects org.apache.activemq:apache-activemq, org.apache.activemq:activemq-all and org.apache.activemq:activemq-broker. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-42588 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.1

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-hg6c-8mvr-jqc9
BIT-activemq-2026-42588

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies