# CVE-2026-40466: Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI

- Severity: High 8.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.78%, higher than 92% of CVEs (2026-12-01)
- Published: 2026-04-24T10:15:44.445Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-w3w2-mpp5-92gm, BIT-ACTIVEMQ-2026-40466
- Weaknesses: CWE-20, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- org.apache.activemq:activemq-broker: before 5.19.6; from 6.0.0 before 6.2.5
- org.apache.activemq:activemq-all: before 5.19.6; from 6.0.0 before 6.2.5
- org.apache.activemq:apache-activemq: before 5.19.6; from 6.0.0 before 6.2.5
- activemq-broker: no versions given
- log4j:2/log4j: no versions given
- log4j: no versions given
- activemq-all: no versions given
- org.apache.activemq:apache-activemq (Maven): before 5.19.6; from 6.0.0 before 6.2.5
- org.apache.activemq:activemq-all (Maven): before 5.19.6; from 6.0.0 before 6.2.5
- org.apache.activemq:activemq-broker (Maven): 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
- apache activemq_broker: before 5.19.6; from 6.0.0 before 6.2.5
- activemq (Bitnami): before 5.19.6; from 6.0.0 before 6.2.5

## Every score

- CISA-ADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt> (not-applicable, vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-40466> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2461410> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40466> (advisory, web)
- <https://github.com/apache/activemq> (package)

## Sources

- CVE List: [CVE-2026-40466](https://www.cve.org/CVERecord?id=CVE-2026-40466), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-w3w2-mpp5-92gm](https://github.com/advisories/GHSA-w3w2-mpp5-92gm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40466](https://nvd.nist.gov/vuln/detail/CVE-2026-40466), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-ACTIVEMQ-2026-40466](https://osv.dev/vulnerability/BIT-ACTIVEMQ-2026-40466), Apache-2.0, modified 2026-07-06

---

Page: https://cve.day/CVE-2026-40466 · Whole record: https://cve.day/CVE-2026-40466.json · Rebuilt by cve.day 2026-11-25T22:59:19.465Z
