All vulnerabilities

Servers and applications

CVE-2026-40466

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…

Severity
High 8.8
Published
24 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
5.19.6, 6.2.5
Exploit chance
4.8% in the next 30 daysHigher than 92% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)Code injection (CWE-94)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources
NVD

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().

From NVD. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Apache ActiveMQServers and applications · cpe:a:apache:activemq
  • Every version before 5.19.6
  • From 6.0.0 before 6.2.5

About Apache ActiveMQ

message broker software

From Wikidata, CC0 1.0.
Docker Hub pulls
5,035,135Docker Hub, 15 Nov 2026
GitHub stars
2,461GitHub, 15 Nov 2026
Forks
1,510GitHub, 15 Nov 2026
Latest release
activemq-6.4.0GitHub, 15 Nov 2026
Released
22 Oct 2026GitHub
Developer
Apache Software FoundationWikidata
License
Apache Software License 2.0Wikidata
Written in
Java, C, C++Wikidata
First released
27 Mar 2006Wikidata
First published on GitHub
21 May 2009GitHub

Release lines

ReleaseLatestSecurity fixes
6.46.4.0Yes
6.36.3.3Yes
6.26.2.10Yes
5.195.19.12Yes
6.16.1.8Ended 2 Dec 2025
6.06.0.1Ended 17 Mar 2024

From endoflife.date.

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-40466
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-40466