Vulnerability · Published Apr 24, 2026 · Assigned by apache
CVE-2026-40466Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI
High 8.8
In plain English
A high-severity improper input validation in Apache ActiveMQ from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.8% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | activemq | no fix listed | DEBIAN-CVE-2026-40466 |
| Debian:13 | activemq | no fix listed | DEBIAN-CVE-2026-40466 |
| Maven | org.apache.activemq:activemq-all | 5.19.6 | GHSA-w3w2-mpp5-92gm |
| Maven | org.apache.activemq:activemq-all | 6.2.5 | GHSA-w3w2-mpp5-92gm |
| Maven | org.apache.activemq:activemq-broker | 5.19.6 | GHSA-w3w2-mpp5-92gm |
| Maven | org.apache.activemq:activemq-broker | 6.2.5 | GHSA-w3w2-mpp5-92gm |
| Maven | org.apache.activemq:apache-activemq | 5.19.6 | GHSA-w3w2-mpp5-92gm |
| Maven | org.apache.activemq:apache-activemq | 6.2.5 | GHSA-w3w2-mpp5-92gm |
| Ubuntu:24.04:LTS | activemq | no fix listed | UBUNTU-CVE-2026-40466 |
| Ubuntu:25.10 | activemq | no fix listed | UBUNTU-CVE-2026-40466 |
| Ubuntu:26.04:LTS | activemq | no fix listed | UBUNTU-CVE-2026-40466 |
| Ubuntu:26.10 | activemq | no fix listed | UBUNTU-CVE-2026-40466 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache ActiveMQ Broker | 0 – before 5.19.66.0.0 – before 6.2.5 |
| Apache Software Foundation | Apache ActiveMQ All | 0 – before 5.19.66.0.0 – before 6.2.5 |
| Apache Software Foundation | Apache ActiveMQ | 0 – before 5.19.66.0.0 – before 6.2.5 |
Weakness: CWE-20, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt vendor-advisory
- https://access.redhat.com/security/cve/CVE-2026-40466 vdb-entry, x_refsource_REDHAT
- RHBZ#2461410 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json x_sadp-csaf-vex