CVE-2026-40466Apache Activemq Improper Input Validation
NVDCVSS scored by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Vulnerability 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.
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.
CVSS v3.1 Base Metrics — Score 8.8 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- Apache Activemq < 5.19.6
- Apache Activemq >= 6.0.0 and < 6.2.5
- Apache Activemq Broker < 5.19.6
- Apache Activemq Broker >= 6.0.0 and < 6.2.5
- Apache Software Foundation Apache ActiveMQ Broker < 5.19.6
- Apache Software Foundation Apache ActiveMQ Broker >= 6.0.0 and < 6.2.5
- Apache Software Foundation Apache ActiveMQ All < 5.19.6
- Apache Software Foundation Apache ActiveMQ All >= 6.0.0 and < 6.2.5
- Apache Software Foundation Apache ActiveMQ < 5.19.6
- Apache Software Foundation Apache ActiveMQ >= 6.0.0 and < 6.2.5
- Apache Activemq 5.19.6
- Apache Activemq 6.2.5
- Apache Activemq Broker 5.19.6
- Apache Activemq Broker 6.2.5
- Apache Software Foundation Apache ActiveMQ Broker 5.19.6
- Apache Software Foundation Apache ActiveMQ Broker 6.2.5
- Apache Software Foundation Apache ActiveMQ All 5.19.6
- Apache Software Foundation Apache ActiveMQ All 6.2.5
- Apache Software Foundation Apache ActiveMQ 5.19.6
- Apache Software Foundation Apache ActiveMQ 6.2.5
What to do
Prioritize this fix. Exploit code is public, so attacks can follow quickly.
- Check whether you run Apache Activemq and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Apr 24, 2026Published
- Oct 26, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new Apache Activemq CVEsYou are reading CVE-2026-40466. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Vendor Advisoryhttps://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt
- Vendor Advisoryhttps://access.redhat.com/security/cve/CVE-2026-40466
- Issue Trackinghttps://bugzilla.redhat.com/show_bug.cgi?id=2461410
- Referencehttps://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json
Data last checked: Nov 23, 2026 11:12 UTC