Description
Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ.



An authenticated attacker may bypass the fix in CVE-2026-34197 by adding a connector using an HTTP Discovery transport via BrokerView.addNetworkConnector or BrokerView.addConnector through Jolokia if the activemq-http module is on the classpath.
A malicious HTTP endpoint can return a VM transport through the HTTP URI which will bypass the validation added in CVE-2026-34197. The attacker can then use the VM transport's brokerConfig parameter to load a remote 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.6, from 6.0.0 before 6.2.5; Apache ActiveMQ All: before 5.19.6, from 6.0.0 before 6.2.5; Apache ActiveMQ: before 5.19.6, from 6.0.0 before 6.2.5.

Users are recommended to upgrade to version 5.19.6 or 6.2.5, which fixes the issue.
Published: 2026-04-24
Score: 8.8 High
EPSS: 10.3% Moderate
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An authenticated adversary can bypass the protection introduced in CVE-2026-34197 by adding a connector with an HTTP Discovery transport through the BrokerView interfaces exposed via Jolokia, provided the activemq-http module is present in the application classpath. The crafted HTTP endpoint returns a VM transport URI that allows the attacker to inject a brokerConfig that loads an external Spring XML application context via ResourceXmlApplicationContext. Because the Spring context is instantiated before the broker service performs configuration validation, the attacker can trigger bean factory methods such as Runtime.exec(), leading to arbitrary code execution on the broker’s JVM. This flaw maps to input validation (CWE‑20) and code injection (CWE‑94) weaknesses.

Affected Systems

Affected products are Apache Software Foundation’s ActiveMQ Broker, ActiveMQ All and ActiveMQ core. In addition to all releases prior to 5.19.6, any 6.0.0–6.2.4 series is vulnerable. The advisory explicitly recommends upgrading to 5.19.6 or any 6.2.5 and later release to eliminate the code execution vector.

Risk and Exploitability

The vulnerability has a CVSS score of 8.8, denoting high severity, but the EPSS score of 10% indicates a higher likelihood of exploitation. It is currently not listed in the CISA KEV catalog. The effect is remote code execution that would be achieved by an attacker who can authenticate with the broker and has network access to the Jolokia endpoint and can place an activemq-http JAR on the broker’s classpath. In the absence of an update, the risk remains elevated, especially for exposed brokers that expose Jolokia or other JMX endpoints to untrusted networks.

Generated by OpenCVE AI on May 12, 2026 at 14:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the broker to version 5.19.6 or any 6.2.5 and later release to incorporate the fix for the code injection issue.
  • If an immediate upgrade is infeasible, remove the activemq-http module from the broker’s classpath to eliminate the HTTP discovery transport vector, and restrict Jolokia access to trusted hosts or disable it entirely.
  • Re‑evaluate the broker configuration to ensure that external Spring XML configurations cannot be loaded via the brokerConfig parameter, and limit JMX and HTTP endpoints to internal interfaces only.

Generated by OpenCVE AI on May 12, 2026 at 14:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-w3w2-mpp5-92gm Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection
History

Mon, 04 May 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Mon, 27 Apr 2026 12:30:00 +0000

Type Values Removed Values Added
First Time appeared Apache
Apache activemq
Apache activemq Broker
CPEs cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:activemq_broker:*:*:*:*:*:*:*:*
Vendors & Products Apache
Apache activemq
Apache activemq Broker

Fri, 24 Apr 2026 19:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 24 Apr 2026 10:30:00 +0000

Type Values Removed Values Added
Description Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. An authenticated attacker may bypass the fix in CVE-2026-34197 by adding a connector using an HTTP Discovery transport via BrokerView.addNetworkConnector or BrokerView.addConnector through Jolokia if the activemq-http module is on the classpath. A malicious HTTP endpoint can return a VM transport through the HTTP URI which will bypass the validation added in CVE-2026-34197. The attacker can then use the VM transport's brokerConfig parameter to load a remote 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.6, from 6.0.0 before 6.2.5; Apache ActiveMQ All: before 5.19.6, from 6.0.0 before 6.2.5; Apache ActiveMQ: before 5.19.6, from 6.0.0 before 6.2.5. Users are recommended to upgrade to version 5.19.6 or 6.2.5, which fixes the issue.
Title Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI
Weaknesses CWE-20
CWE-94
References

Subscriptions

Apache Activemq Activemq Broker
cve-icon MITRE

Status: PUBLISHED

Assigner: apache

Published:

Updated: 2026-04-28T03:55:20.119Z

Reserved: 2026-04-13T13:38:42.111Z

Link: CVE-2026-40466

cve-icon Vulnrichment

Updated: 2026-04-24T18:04:42.247Z

cve-icon NVD

Status : Analyzed

Published: 2026-04-24T11:16:22.540

Modified: 2026-04-27T12:23:15.880

Link: CVE-2026-40466

cve-icon Redhat

Severity : Important

Publid Date: 2026-04-24T10:15:44Z

Links: CVE-2026-40466 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-12T15:00:16Z

Weaknesses