cve.bz

CVE-2026-42588 apache: Code Injection

8.1 highEPSS 0.7%Fix available

High (8.1) in apache. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.activemq:activemq-broker 5.19.7, 6.2.6.

On this page
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.

Severity

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-06-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42588 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42588?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42588?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42588 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache ActiveMQ Brokerbefore 5.19.7
Apache Software Foundation Apache ActiveMQ Brokerfrom 6.0.0 before 6.2.6
Apache Software Foundation Apache ActiveMQ Allbefore 5.19.7
Apache Software Foundation Apache ActiveMQ Allfrom 6.0.0 before 6.2.6
Apache Software Foundation Apache ActiveMQbefore 5.19.7
Apache Software Foundation Apache ActiveMQfrom 6.0.0 before 6.2.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:activemq-broker<5.19.75.19.7
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:activemq-broker>=6.0.0 <6.2.66.2.6
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:activemq-all<5.19.75.19.7
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:activemq-all>=6.0.0 <6.2.66.2.6
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:apache-activemq<5.19.75.19.7
GHSA-hg6c-8mvr-jqc9Mavenorg.apache.activemq:apache-activemq>=6.0.0 <6.2.66.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13activemqno fix listedDEBIAN-CVE-2026-42588
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 moreactivemqno fix listedUBUNTU-CVE-2026-42588

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important arbitrary code execution flaw in Apache ActiveMQ Classic. An authenticated attacker can exploit improper input validation in the Jolokia JMX-HTTP bridge, exposed on the web console. By crafting a malicious discovery URI, an attacker can load a Spring XML application context, leading to arbitrary code execution within the broker's JVM. The requirement for prior authentication to the ActiveMQ web console limits the immediate exposure.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7.13.6activemq-brokerFixed 2026-09-10RHSA-2026:66545
Red Hat AMQ Broker 7.14.1activemq-brokerFixed 2026-09-10RHSA-2026:66488
Red Hat Data Grid 8activemq-brokerNot affected
Red Hat Fuse 7activemq-allWill not fix
Red Hat Fuse 7activemq-brokerWill not fix
Red Hat JBoss Enterprise Application Platform Expansion Packactivemq-brokerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42588.

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON