CVE-2026-40466: apache software foundation apache activemq Improper Input Validation
Vulnerability summary
CVE-2026-40466 is a high (CVSS 8.8) Improper Input Validation vulnerability in apache software foundation apache activemq. EPSS estimates a 4.11% chance of exploitation in the next 30 days, higher than 90.6% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 24-04-2026PublishedVulnerability first disclosed.
- 15-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- OSV · MavenEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
4.11%
Chance of exploitation in the next 30 days
Percentile
91%
Versus all other CVEs
30-day change
-0.68 pp
From 4.78% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-94Improper Control of Generation of Code ('Code Injection')The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Affected systems
Chainguard4 products
- apache-activemq-6.1All versions (No fix recorded)
- apache-activemq-fips-6.1All versions (No fix recorded)
- geoserver-2.27-community< 2.27.5-r9
- geoserver-2.28-community< 2.28.3-r7
Apache software foundation3 products
- apache activemq< 5.19.6 | ≥ 6.0.0, < 6.2.5
- apache activemq all< 5.19.6 | ≥ 6.0.0, < 6.2.5
- apache activemq broker< 5.19.6 | ≥ 6.0.0, < 6.2.5
Org.apache.activemq3 products
- activemq-all< 5.19.6 | ≥ 6.0.0, < 6.2.5
- activemq-broker< 5.19.6 | ≥ 6.0.0, < 6.2.5
- apache-activemq< 5.19.6 | ≥ 6.0.0, < 6.2.5
Apache2 products
- activemq< 5.19.6 | ≥ 6.0.0, < 6.2.5
- activemq_broker< 5.19.6 | ≥ 6.0.0, < 6.2.5
Debian1 product
- activemqAll versions (No fix recorded)
Ubuntu1 product
- activemqAll versions (No fix recorded)
6 vendors · 14 products
References
12 links- activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txtVendor AdvisoryAdvisoryWEBNot Applicable
Show all 12 references
- github.com/apache/activemqPACKAGE