CVE-2026-40466: Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI
CVE-2026-40466 affects 125 listed versions of Apache ActiveMQ in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Apache ActiveMQ
125 of 143 listed versions are affected. Fixed in 6.2.5, 5.19.6. The newest release, 6.4.0, is not affected.
6.2.4 6.2.3 6.2.2 6.2.1 6.2.0 6.1.9 6.1.8 6.1.7 6.1.6 6.1.5 6.1.4 6.1.3 6.1.2 6.1.1 6.1.0 6.0.1 6.0.0 5.19.5 5.19.4 5.19.3 5.19.2 5.19.1 5.19.0 5.18.7 5.18.6 5.18.5 5.18.4 5.18.3 5.18.2 5.18.1 5.18.0 5.17.7 5.17.6 5.17.5 5.17.4 5.17.3 5.17.2 5.17.1 5.17.0 5.16.8 5.16.7 5.16.6 5.16.5 5.16.4 5.16.3 5.16.2 5.16.1 5.16.0 5.15.16 5.15.15 5.15.14 5.15.13 5.15.12 5.15.11 5.15.10 5.15.9 5.15.8 5.15.7 5.15.6 5.15.5 and 65 more
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (Apache Software Foundation)
Published by Apache Software Foundation on 24 April 2026. Last changed 26 October 2026. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2026-40466 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.