CVE-2026-40466: Apache ActiveMQ Broker - Remote Code Execution
- Cve: CVE-2026-40466
- Name: Apache ActiveMQ Broker - Remote Code Execution
- 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.
- Impact: Authenticated attackers can execute arbitrary code on the broker JVM, potentially leading to full system compromise.
- Remediation: Upgrade to versions 5.19.6 or 6.2.5 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: logged_in
- Requirements: Attacker must be authenticated and activemq-http module must be on classpath.
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.04783
- Epss percentile: 0.92146
- Assignee: [email protected]
- Published at: 2026-04-24T11:16:22Z
- Age in days: 214
- Modified at: 2026-10-26T22:10:00Z
- Patch available: yes
- References total: 6
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40466
- Nvd status: modified
- Checked, none or zero: public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
| CWE-94 | Improper Control of Generation of Code |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2026-05-07 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2026-40466 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40466.yaml |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40466.yaml | nuclei_template | Nuclei Template |
| https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2026-40466 | vulncheck | Vulncheck Reported Exploitation |
| https://www.linkedin.com/feed/update/urn:li:activity:7458251406555348992/ | vulncheck | Vulncheck Reported Exploitation |
| https://access.redhat.com/security/cve/CVE-2026-40466 | nvd | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2461410 | nvd | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:activemq | >= 6.0.0, < 6.2.5; < 5.19.6 | no | nvd | /v1/products/apache/activemq |
| apache:activemq_broker | >= 6.0.0, < 6.2.5; < 5.19.6 | no | nvd | /v1/products/apache/activemq_broker |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/activemq | package | yes | /v1/repositories/apache/activemq |
Index
- Repositories: 36
- Repositories high signal: 16
- Packages: 3
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2026-05-07
- Remote: yes
- Authentication required: yes
- Exposed hosts: 3590
- Checked, none or zero: known exploited, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, public exploit first date, initial access since, hackerone reports