CVE-2026-40466
Last modified
CVE-2026-40466 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 4.78% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apache | Activemq | < 5.19.6 |
| Apache | Activemq | >= 6.0.0, < 6.2.5 |
| Apache | Activemq Broker | < 5.19.6 |
| Apache | Activemq Broker | >= 6.0.0, < 6.2.5 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-40466?
How severe is CVE-2026-40466?
How do I fix CVE-2026-40466?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40460When NGINX Plus or NGINX Open Source are configured to use t…6.9
- CVE-2026-40461Anviz CX2 Lite and CX7 are vulnerable to unauthenticated POS…7.5
- CVE-2026-40462Incorrect permission assignment vulnerabilities exist in iCo…7.1
- CVE-2026-40463WaveSuite is affected by an insufficient role-based access c…7.6
- CVE-2026-40464NSP is vulnerable to a stored XSS due to insufficient valida…5.4
- CVE-2026-40465NSP is vulnerable to an open redirect due to insufficient se…5.3
- CVE-2026-40467Use After Free vulnerability has been found in "io.c" progra…7.5
- CVE-2026-40468Integer overflow vulnerability has been found in "builtin.c"…9.1
- CVE-2026-40469Integer overflow vulnerability has been found in "builtin.c"…9.1
- CVE-2026-40470A critical XSS vulnerability affected hackage-server and hac…9.9
- CVE-2026-40471hackage-server lacked Cross-Site Request Forgery (CSRF) prot…9.6
- CVE-2026-40472In hackage-server, user-controlled metadata from .cabal file…9.9
Are you affected by CVE-2026-40466?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
