CVE-2026-42588

Source
https://cve.org/CVERecord?id=CVE-2026-42588
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42588.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-42588
Aliases
Downstream
Related
Published
2026-06-01T07:23:17.287Z
Modified
2026-07-15T01:49:17.977862847Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via Jolokia addNetworkConnector
Details

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.

Database specific
{
    "cna_assigner": "apache",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42588.json",
    "cwe_ids": [
        "CWE-20",
        "CWE-94"
    ],
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                },
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                },
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                }
            ]
        },
        {
            "source": "DESCRIPTION",
            "extracted_events": [
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                },
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                },
                {
                    "fixed": "5.19.7"
                },
                {
                    "introduced": "6.0.0"
                },
                {
                    "fixed": "6.2.6"
                }
            ]
        }
    ]
}
References

Affected packages

Git / github.com/apache/activemq

Affected ranges

Type
GIT
Repo
https://github.com/apache/activemq
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "cpe": "cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*",
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "5.19.7"
        },
        {
            "introduced": "6.0.0"
        },
        {
            "fixed": "6.2.6"
        }
    ]
}

Affected versions

activemq-5.*
activemq-5.10.0
activemq-5.11.0
activemq-5.12.0
activemq-5.13.0
activemq-5.14.0
activemq-5.15.0
activemq-5.16.0
activemq-5.18.0
activemq-5.18.1
activemq-5.18.2
activemq-5.18.3
activemq-5.18.4
activemq-5.18.5
activemq-5.18.6
activemq-5.19.0
activemq-5.19.1
activemq-5.19.2
activemq-5.9.0
activemq-6.*
activemq-6.0.0
activemq-6.1.0
activemq-6.1.1
activemq-6.1.2
activemq-6.2.0
activemq-6.2.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42588.json"