CVE-2026-40466
published high CVSS 3.1 · 8.8Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | org.apache.activemq:activemq-brokerApache ActiveMQ Broker · 0 to < 5.19.6 · 6.0.0 to < 6.2.5 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | org.apache.activemq:activemq-allApache ActiveMQ All · 0 to < 5.19.6 · 6.0.0 to < 6.2.5 · Other versions: unaffected | Affected | Not stated | apache |
| Apache Software Foundation | — | org.apache.activemq:apache-activemqApache ActiveMQ · 0 to < 5.19.6 · 6.0.0 to < 6.2.5 · Other versions: unaffected | Affected | Not stated | apache |
| Red Hat | — | activemq-brokerRed Hat AMQ Broker 7 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | activemq-brokerRed Hat Data Grid 8 | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 8 | log4j:2/log4j | Unaffected | Not required | redhat-SADP |
| Red Hat Enterprise Linux | 9 | log4j | Unaffected | Not required | redhat-SADP |
| Red Hat | — | activemq-allRed Hat Fuse 7 | Unaffected | Not required | redhat-SADP |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | activemq-brokerRed Hat Fuse 7 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | activemq-brokerRed Hat JBoss Enterprise Application Platform 7 | Affected | Not stated | redhat-SADP |
| Red Hat | — | activemq-brokerRed Hat JBoss Enterprise Application Platform 8 | Unaffected | Not required | redhat-SADP |
| Red Hat | — | activemq-brokerRed Hat JBoss Enterprise Application Platform Expansion Pack | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in Apache ActiveMQ. An authenticated attacker can bypass a previous security fix by adding a connector using an HTTP Discovery transport through Jolokia, if the activemq-http module is present. A malicious HTTP endpoint can return a virtual machine (VM) transport, which allows the attacker to load a remote Spring XML application context. This can lead to arbitrary code execution on the broker's Java Virtual Machine (JVM).
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- redhat-SADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.8 | high | CISA-ADP · adp | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache ActiveMQ Broker | 0 to < 5.19.6 (affected · semver)6.0.0 to < 6.2.5 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache ActiveMQ All | 0 to < 5.19.6 (affected · semver)6.0.0 to < 6.2.5 (affected · semver)Default: unaffected | apache · cna |
| Apache Software Foundation | Apache ActiveMQ | 0 to < 5.19.6 (affected · semver)6.0.0 to < 6.2.5 (affected · semver)Default: unaffected | apache · cna |
| Red Hat | Red Hat AMQ Broker 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Data Grid 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Enterprise Linux 9 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Fuse 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat Fuse 7 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform 7 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | Default: unaffected | redhat-SADP · adp |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | Default: unaffected | redhat-SADP · adp |
Weaknesses
3- CWE-20 CWE-20 Improper Input Validation
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
4Provider assertions
3apache · cna
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of CVE-2026-34197 via HTTP discovery second-stage URI
redhat-SADP · adp
org.apache.activemq/activemq-all: org.apache.activemq/activemq-broker: Apache ActiveMQ: Arbitrary code execution via improper input validation in HTTP Discovery transport
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7b8ae8ed5745d7a81b7847eabf98217cf94a3a0425e1f49181b1c2aedc44fb45
- Ingested
- 23 Sep 2026, 09:13:21 UTC
- Source record
- Official CVE record