CVE-2026-40466 — Vulnerability in activemq-all — CVE Details
Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (4.11%). Schedule for your next planned update.
Does your project use an affected org.apache.activemq:activemq-all version?
Paste your pom.xml to check it for CVE-2026-40466 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published April 24, 2026 (216 days ago).
- Last revised September 10, 2026 — 139 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:activemq-all -->
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:apache-activemq -->
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:activemq-all -->
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:activemq-broker -->
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:activemq-broker -->
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:apache-activemq -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.apache.activemq:activemq-all Maven · Affected: 4.1.2, 5.0.0, 5.1.0, 5.10.0 (+86 more) | 5.19.6 |
| org.apache.activemq:apache-activemq Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more) | 6.2.5 |
| org.apache.activemq:activemq-all Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more) | 6.2.5 |
| org.apache.activemq:activemq-broker Maven · Affected: 5.10.0, 5.10.1, 5.10.2, 5.11.0 (+71 more) | 5.19.6 |
| org.apache.activemq:activemq-broker Maven · Affected: 6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more) | 6.2.5 |
| org.apache.activemq:apache-activemq Maven · Affected: 4.1.1, 4.1.2, 5.0.0, 5.1.0 (+87 more) | 5.19.6 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-40466?
- Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-40466?
- CVE-2026-40466 affects org.apache.activemq:activemq-all, org.apache.activemq:apache-activemq and org.apache.activemq:activemq-broker. It has a 4.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40466 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 10% of EPSS-scored vulnerabilities — 91.5% of tracked vulnerabilities score at or below it, so it is substantially more likely to be exploited than most tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2014-3600CRITICAL
Improper Restriction of XML External Entity Reference in Apache ActiveMQ
- CVE-2026-39304HIGH
Apache ActiveMQ: Denial of Service via Out of Memory vulnerability
- CVE-2026-49157HIGH
Apache ActiveMQ has an Incorrect Default Permissions vulnerability
- CVE-2026-53917HIGH
Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ Client, Apache ActiveMQ Broker have Memory Allocation with Excessive Size Value vulnerability
- CVE-2026-42588HIGH
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue
- CVE-2026-41044HIGH
Apache ActiveMQ Vulnerable to Code Injection
- CVE-2026-34197HIGH
Authenticated Apache ActiveMQ Broker and Apache ActiveMQ users could perform RCE via Jolokia MBeans
- CVE-2026-45505HIGH
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue