CVE-2026-40466Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Possible bypass of…
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | activemq | Fix pending | UBUNTU-CVE-2026-40466 | |
| Ubuntu 26.04 | activemq | Under investigation | UBUNTU-CVE-2026-40466 | |
| Ubuntu 25.10 | activemq | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-40466 | |
| Ubuntu 24.04 | activemq | Under investigation | UBUNTU-CVE-2026-40466 | |
| Ubuntu 22.04 | activemq | Fix pending | UBUNTU-CVE-2026-40466 | |
| Ubuntu 20.04 | activemq | Fix pending | UBUNTU-CVE-2026-40466 | |
| Ubuntu 18.04 | activemq | Fix pending | UBUNTU-CVE-2026-40466 | |
| Ubuntu 16.04 | activemq | Fix pending | UBUNTU-CVE-2026-40466 | |
| Debian 13 | activemq | Fix pending | DEBIAN-CVE-2026-40466 | |
| Debian 12 | activemq | Fix pending | DEBIAN-CVE-2026-40466 | |
| Red Hat Enterprise Linux 9 | log4j | Not affected | ||
| Red Hat Enterprise Linux 9 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 9 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-jcl | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-slf4j | Not affected | ||
| Red Hat Enterprise Linux 8 | log4j-web | Not affected | ||
| Maven library | org.apache.activemq:activemq-all | Fixed | 6.2.5 | GHSA-w3w2-mpp5-92gm |
| Maven library | org.apache.activemq:activemq-broker | Fixed | 5.19.6 | GHSA-w3w2-mpp5-92gm |
| Maven library | org.apache.activemq:apache-activemq | Fixed | 6.2.5 | GHSA-w3w2-mpp5-92gm |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache ActiveMQ Broker: affected: before 5.19.6, 6.0.0 to before 6.2.5; fixed in
5.19.6,6.2.5 - Apache Software Foundation Apache ActiveMQ All: affected: before 5.19.6, 6.0.0 to before 6.2.5; fixed in
5.19.6,6.2.5 - Apache Software Foundation Apache ActiveMQ: affected: before 5.19.6, 6.0.0 to before 6.2.5; fixed in
5.19.6,6.2.5
Vendor advisories:
- https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.