Skip to main content

CVE-2026-42588 — Vulnerability in apache-activemq — CVE Details

HIGH

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

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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.66%). Schedule for your next planned update.

Does your project use an affected org.apache.activemq:apache-activemq version?

Paste your pom.xml to check it for CVE-2026-42588 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

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 (178 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: Maven (3).

PackageFixed In
org.apache.activemq:apache-activemq Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:activemq-all Maven · Affected: 4.1.2, 5.0.0, 5.1.0, 5.10.0 (+87 more)5.19.7
org.apache.activemq:activemq-broker Maven · Affected: 5.10.0, 5.10.1, 5.10.2, 5.11.0 (+72 more)5.19.7
org.apache.activemq:activemq-all Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:activemq-broker Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+13 more)6.2.6
org.apache.activemq:apache-activemq Maven · Affected: 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. It has a 0.7% probability of exploitation within 30 days (EPSS score). 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

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.66%
EPSS percentile: 46.2

This is a below-median EPSS score — only 46.2% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

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

Related CVEs

  • CVE-2014-3600
    CRITICAL

    Improper Restriction of XML External Entity Reference in Apache ActiveMQ

  • CVE-2026-39304
    HIGH

    Apache ActiveMQ: Denial of Service via Out of Memory vulnerability

  • CVE-2026-49157
    HIGH

    Apache ActiveMQ has an Incorrect Default Permissions vulnerability

  • CVE-2026-53917
    HIGH

    Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ Client, Apache ActiveMQ Broker have Memory Allocation with Excessive Size Value vulnerability

  • CVE-2026-41044
    HIGH

    Apache ActiveMQ Vulnerable to Code Injection

  • CVE-2026-34197
    HIGH

    Authenticated Apache ActiveMQ Broker and Apache ActiveMQ users could perform RCE via Jolokia MBeans

  • CVE-2026-45505
    HIGH

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

  • CVE-2026-40466
    HIGH

    Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml