Skip to content
Fencer Vulns
high 8.8

CVE-2026-40466 json

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

published 2026-04-24 6 mo ago modified 2026-10-26 13 d ago also BIT-activemq-2026-40466 , EUVD-2026-25410 , GHSA-w3w2-mpp5-92gm

cvss
8.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
4.8%
EPSS 4.8% chance of exploitation in 30 days, percentile 91%
public exploits
0
none known, plus a Nuclei check

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.

Patch / fix

  • maven org.apache.activemq:apache-activemq 5.19.6, 6.2.5
  • maven org.apache.activemq:activemq-all 5.19.6, 6.2.5
  • maven org.apache.activemq:activemq-broker 5.19.6, 6.2.5
  • bitnami activemq 5.19.6, 6.2.5
  • Apache Software Foundation Apache ActiveMQ Broker 5.19.6, 6.2.5
  • Apache Software Foundation Apache ActiveMQ All 5.19.6, 6.2.5
  • Apache Software Foundation Apache ActiveMQ 5.19.6, 6.2.5

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-40466 updated cvss 8.8

org.apache.activemq/activemq-all: org.apache.activemq/activemq-broker: Apache ActiveMQ: Arbitrary code execution via improper input validation in HTTP Discovery transport

  • Red Hat JBoss Enterprise Application Platform 7 activemq-broker
    affected: no fix planned “Will not fix”
  • Red Hat AMQ Broker 7 activemq-broker
    not affected: vulnerable code not in execute path
  • Red Hat Data Grid 8 activemq-broker
    not affected: component not present
  • Red Hat Enterprise Linux 8 log4j, log4j-jcl, log4j-web, log4j-slf4j Red Hat Enterprise Linux 9 log4j, log4j-jcl, log4j-slf4j Red Hat Fuse 7 activemq-all, activemq-broker Red Hat JBoss Enterprise Application Platform 8 activemq-broker Red Hat JBoss Enterprise Application Platform Expansion Pack activemq-broker
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
total
Assessed
6 mo ago

Exploit prediction

4.78% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • Nuclei template Apache ActiveMQ - Remote Code Execution via HTTP Discovery Transport Bypass nuclei detection template

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
GitHub 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.activemq:apache-activemq
<5.19.6
>=6.0.0, <6.2.5
5.19.6
6.2.5
maven org.apache.activemq:activemq-all
<5.19.6
>=6.0.0, <6.2.5
5.19.6
6.2.5
maven org.apache.activemq:activemq-broker
<5.19.6
>=6.0.0, <6.2.5
5.19.6
6.2.5
bitnami activemq
<5.19.6
>=6.0.0, <6.2.5
5.19.6
6.2.5

Affected products

  • Apache Software Foundation Apache ActiveMQ Broker
  • Apache Software Foundation Apache ActiveMQ All
  • Apache Software Foundation Apache ActiveMQ
  • Red Hat Red Hat AMQ Broker 7
  • Red Hat Red Hat Data Grid 8
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 9
  • Red Hat Red Hat Fuse 7
  • Red Hat Red Hat JBoss Enterprise Application Platform 7
  • Red Hat Red Hat JBoss Enterprise Application Platform 8
  • Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-94 Improper Control of Generation of Code

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.