Security mailing lists by PureSourceCode

CVE-2026-40466

HIGH 8.8CVSS 3.1

Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection

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.

Published
24 Apr 2026
Last modified
26 Oct 2026
Assigned by
security@apache.org
NVD status
Modified
Weakness
CWE-20CWE-94
Also known as
BIT-activemq-2026-40466GHSA-w3w2-mpp5-92gm
Sources
NVDJSONOSV GHSA-w3w2-mpp5-92gmJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 8.8 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD apache activemq
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
< 5.19.6 5.19.6
NVD apache activemq
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
>= 6.0.0, < 6.2.5 6.2.5
NVD apache activemq_broker
cpe:2.3:a:apache:activemq_broker:*:*:*:*:*:*:*:*
< 5.19.6 5.19.6
NVD apache activemq_broker
cpe:2.3:a:apache:activemq_broker:*:*:*:*:*:*:*:*
>= 6.0.0, < 6.2.5 6.2.5
OSV Maven org.apache.activemq:apache-activemq < 5.19.6 5.19.6
OSV Maven org.apache.activemq:activemq-all < 5.19.6 5.19.6
OSV Maven org.apache.activemq:activemq-broker < 5.19.6 5.19.6
OSV Maven org.apache.activemq:apache-activemq >= 6.0.0, < 6.2.5 6.2.5
OSV Maven org.apache.activemq:activemq-all >= 6.0.0, < 6.2.5 6.2.5
OSV Maven org.apache.activemq:activemq-broker >= 6.0.0, < 6.2.5 6.2.5

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.