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

Published Apr 23, 2026
·
Updated

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.

Affected Software

9 affected components
Apache ActiveMQ Broker<5.19.6, >=6.0.0<6.2.5
Apache ActiveMQ All<5.19.6, >=6.0.0<6.2.5
Apache ActiveMQ<5.19.6, >=6.0.0<6.2.5
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
IBM Engineering Requirements Management DOORS and DOORS Web Access<=9.7.2.1 - 9.7.2.11
IBM Engineering Requirements Management DOORS and DOORS Web Access<=9.6.1.1 - 9.6.1.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache ActiveMQ Broker to a version that resolves this vulnerability.

    Fixed in 5.19.6
  2. Upgrade

    Upgrade Apache ActiveMQ Broker to a version that resolves this vulnerability.

    Fixed in 6.2.5
  3. Upgrade

    Upgrade Apache ActiveMQ All to a version that resolves this vulnerability.

    Fixed in 5.19.6
  4. Upgrade

    Upgrade Apache ActiveMQ All to a version that resolves this vulnerability.

    Fixed in 6.2.5
  5. Upgrade

    Upgrade Apache ActiveMQ to a version that resolves this vulnerability.

    Fixed in 5.19.6
  6. Upgrade

    Upgrade Apache ActiveMQ to a version that resolves this vulnerability.

    Fixed in 6.2.5

Event History

Apr 24, 2026
CVE Published
via MITRE·10:15 AM
Data Sourced
via MITRE·10:15 AM
DescriptionWeakness
Data Sourced
via Red Hat·11:01 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:16 AM
DescriptionSeverityWeaknessAffected Software
Jul 6, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-40466?

CVE-2026-40466 is classified as a critical severity vulnerability due to its potential for code injection and improper input validation.

2

How do I fix CVE-2026-40466?

To fix CVE-2026-40466, update Apache ActiveMQ Broker or Apache ActiveMQ All to versions beyond 5.19.6 or versions between 6.0.0 and 6.2.5 exclusively.

3

What versions of Apache ActiveMQ are affected by CVE-2026-40466?

CVE-2026-40466 affects Apache ActiveMQ Broker and ActiveMQ All versions up to 5.19.6 and versions between 6.0.0 and 6.2.5.

4

What does CVE-2026-40466 exploit?

CVE-2026-40466 exploits insufficient input validation allowing for a possible bypass of previously remedied vulnerabilities.

5

Is it safe to use Apache ActiveMQ versions affected by CVE-2026-40466?

It is not safe to use affected versions of Apache ActiveMQ as they may be susceptible to exploitation through code injection.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203