/Vulnerability Library

Apache ActiveMQ - Remote Code Execution via HTTP Discovery Transport Bypass

CVE-2026-40466
Verified

Description

Apache ActiveMQ before 5.19.6 and 6.0.0 through 6.2.4 is vulnerable to remote code execution via a bypass of the CVE-2026-34197 security fix. The original fix blocked the "vm://" transport scheme in BrokerView.addNetworkConnector() and BrokerView.addConnector() to prevent authenticated attackers from loading malicious Spring XML configurations via the Jolokia API. However, the fix only denied the "vm" scheme. An attacker can bypass this restriction by using the HTTP Discovery transport(http://attacker/discovery), which is not in the denied scheme list. The attacker-controlled HTTP endpoint returns a vm:// transport URI as a second-stage response, which then loads a remote Spring XML application context, leading to arbitrary code execution on the broker JVM. The activemq-http module must be on the classpath (present by default in the "all" distribution), and authenticated access to the Jolokia API (/api/jolokia/) is required.

Severity

High

CVSS Score

8.8

Exploit Probability

4%

Affected Product

activemq

Published Date

May 4, 2026

Template Author

dhiyaneshdk

CVE-2026-40466.yaml
8.8Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVE ID:
cve-2026-40466
CWE ID:
cwe-20, cwe-94

References

https://activemq.apache.org/security-advisories.data/CVE-2026-40466-announcement.txthttps://nvd.nist.gov/vuln/detail/CVE-2026-40466https://github.com/advisories/GHSA-w3w2-mpp5-92gmhttps://github.com/apache/activemq/pull/1918

Remediation Steps

Attacker must be authenticated and activemq-http module must be on classpath.