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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-04-24 · Modified: 2026-07-15
- Aliases: UBUNTU-CVE-2026-40466, DEBIAN-CVE-2026-40466, CGA-2h76-5jw5-39wj, CGA-3j8f-8cm5-6w7j, CGA-3xh6-j2c9-mjmq, CGA-4mp8-6cpg-qc9w, CGA-5c6c-f72r-pwpr, CGA-5cf4-ghwc-3v97, CGA-5wqm-6rfj-f37p, CGA-64h2-rhqf-xmx6, CGA-6fc8-696j-m49g, CGA-89hf-r94m-685r, CGA-8g8c-6gh8-7vcw, CGA-8v4h-3r6f-3xjh, CGA-pmqv-f7vj-4xwg, GHSA-w3w2-mpp5-92gm, BIT-activemq-2026-40466, CGA-q69m-342q-r5cp, CGA-qc82-j69v-mpv7, CGA-rj48-9ggj-6wfw, CGA-rp6j-7hwv-r5xj, CGA-wwf4-57w4-5fxp, CGA-wx9m-w5xf-28qp, CGA-x3rh-fg4m-9gq7
- Record: https://cvemate.com/vulnerability/CVE-2026-40466 · JSON: https://cvemate.com/vulnerability/CVE-2026-40466/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.783%, percentile 92.17%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache activemq: \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- apache software foundation apache activemq all: \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- apache software foundation apache activemq broker: \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- apache activemq: \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- apache activemq\_broker: \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- chainguard apache-activemq-6.1 (Chainguard): All versions (No fix recorded)
- chainguard apache-activemq-fips-6.1 (Chainguard): All versions (No fix recorded)
- chainguard geoserver-2.27-community (Chainguard): \< 2.27.5-r9
- chainguard geoserver-2.28-community (Chainguard): \< 2.28.3-r7
- debian activemq (Debian): All versions (No fix recorded)
- ubuntu activemq (Ubuntu): All versions (No fix recorded)
- org.apache.activemq activemq-all (Maven): \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- org.apache.activemq activemq-broker (Maven): \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5
- org.apache.activemq apache-activemq (Maven): \< 5.19.6 \| ≥ 6.0.0, \< 6.2.5

## References

- <https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt>
- <https://access.redhat.com/security/cve/CVE-2026-40466>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2461410>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json>
- <https://ubuntu.com/security/CVE-2026-40466>
- <https://www.cve.org/CVERecord?id=CVE-2026-40466>
- <https://www.openwall.com/lists/oss-security/2026/04/23/4>
- <https://security-tracker.debian.org/tracker/CVE-2026-40466>
- <https://repo.maven.apache.org/maven2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40466.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40466>
- <https://github.com/apache/activemq>

---

Data as of 2026-12-05T03:51:41.112Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
