Vulnerability · Published Apr 24, 2026 · Assigned by apache

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

High 8.8

In plain English

A high-severity improper input validation in Apache ActiveMQ from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 4.8% (higher than 92% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.8High
Exploit odds (30 days)4.8%top 8.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Nuclei

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12activemqno fix listedDEBIAN-CVE-2026-40466
Debian:13activemqno fix listedDEBIAN-CVE-2026-40466
Mavenorg.apache.activemq:activemq-all5.19.6GHSA-w3w2-mpp5-92gm
Mavenorg.apache.activemq:activemq-all6.2.5GHSA-w3w2-mpp5-92gm
Mavenorg.apache.activemq:activemq-broker5.19.6GHSA-w3w2-mpp5-92gm
Mavenorg.apache.activemq:activemq-broker6.2.5GHSA-w3w2-mpp5-92gm
Mavenorg.apache.activemq:apache-activemq5.19.6GHSA-w3w2-mpp5-92gm
Mavenorg.apache.activemq:apache-activemq6.2.5GHSA-w3w2-mpp5-92gm
Ubuntu:24.04:LTSactivemqno fix listedUBUNTU-CVE-2026-40466
Ubuntu:25.10activemqno fix listedUBUNTU-CVE-2026-40466
Ubuntu:26.04:LTSactivemqno fix listedUBUNTU-CVE-2026-40466
Ubuntu:26.10activemqno fix listedUBUNTU-CVE-2026-40466

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache ActiveMQ Broker 0 – before 5.19.66.0.0 – before 6.2.5
Apache Software Foundation Apache ActiveMQ All 0 – before 5.19.66.0.0 – before 6.2.5
Apache Software Foundation Apache ActiveMQ 0 – before 5.19.66.0.0 – before 6.2.5

Weakness: CWE-20, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References