Loading...
Skip to main content

CVE-2026-40466 — Vulnerability in org.apache.activemq:activemq-all...

HIGH

Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection

Published April 24, 2026Updated September 10, 2026Source: osv

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.

Advisory Timeline

  • First published April 24, 2026 (171 days ago).
  • Last revised September 10, 2026 — 139 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.apache.activemq:activemq-all to 5.19.6 or later
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:activemq-all -->
Maven
Update org.apache.activemq:apache-activemq to 6.2.5 or later
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:apache-activemq -->
Maven
Update org.apache.activemq:activemq-all to 6.2.5 or later
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:activemq-all -->
Maven
Update org.apache.activemq:activemq-broker to 5.19.6 or later
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:activemq-broker -->
Maven
Update org.apache.activemq:activemq-broker to 6.2.5 or later
<!-- Update pom.xml dependency version to 6.2.5 for org.apache.activemq:activemq-broker -->
Maven
Update org.apache.activemq:apache-activemq to 5.19.6 or later
<!-- Update pom.xml dependency version to 5.19.6 for org.apache.activemq:apache-activemq -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (6)

Affects 1 ecosystem: maven (3).

PackageEcosystemAffectedFixed In
org.apache.activemq:activemq-all
maven
4.1.2, 5.0.0, 5.1.0, 5.10.0 (+86 more)5.19.6
org.apache.activemq:apache-activemq
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more)6.2.5
org.apache.activemq:activemq-all
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more)6.2.5
org.apache.activemq:activemq-broker
maven
5.10.0, 5.10.1, 5.10.2, 5.11.0 (+71 more)5.19.6
org.apache.activemq:activemq-broker
maven
6.0.0, 6.0.1, 6.1.0, 6.1.1 (+12 more)6.2.5
org.apache.activemq:apache-activemq
maven
4.1.1, 4.1.2, 5.0.0, 5.1.0 (+87 more)5.19.6

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-20
    Improper Input ValidationMITRE
  • CWE-94
    Code InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-40466?
Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-40466?
CVE-2026-40466 affects org.apache.activemq:activemq-all, org.apache.activemq:apache-activemq and org.apache.activemq:activemq-broker. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-40466 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-w3w2-mpp5-92gm
BIT-activemq-2026-40466

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies