CVE-2026-40466

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

Configuration 1 (hide)

OR cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*

Configuration 2 (hide)

OR cpe:2.3:a:apache:activemq_broker:*:*:*:*:*:*:*:*
cpe:2.3:a:apache:activemq_broker:*:*:*:*:*:*:*:*

History

26 Oct 2026, 22:10

Type Values Removed Values Added
Summary
  • (es) Vulnerabilidad de validación de entrada incorrecta, control incorrecto de la generación de código (’Inyección de código’) en Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Un atacante autenticado puede eludir la corrección en CVE-2026-34197 añadiendo un conector que utiliza un transporte HTTP Discovery a través de BrokerView.addNetworkConnector o BrokerView.addConnector mediante Jolokia si el módulo activemq-http está en el classpath. Un endpoint HTTP malicioso puede devolver un transporte VM a través de la URI HTTP, lo que eludirá la validación añadida en CVE-2026-34197. El atacante puede entonces usar el parámetro brokerConfig del transporte VM para cargar un contexto de aplicación Spring XML remoto usando ResourceXmlApplicationContext. Debido a que ResourceXmlApplicationContext de Spring instancia todos los beans singleton antes de que BrokerService valide la configuración, se produce la ejecución de código arbitrario en la JVM del broker a través de métodos de fábrica de beans como Runtime.exec(). Este problema afecta a Apache ActiveMQ Broker: anterior a 5.19.6, desde 6.0.0 anterior a 6.2.5; Apache ActiveMQ All: anterior a 5.19.6, desde 6.0.0 anterior a 6.2.5; Apache ActiveMQ: anterior a 5.19.6, desde 6.0.0 anterior a 6.2.5. Se recomienda a los usuarios actualizar a la versión 5.19.6 o 6.2.5, que corrige el problema.

Information

Published : 2026-04-24 11:16

Updated : 2026-10-26 22:10


NVD link : CVE-2026-40466

Mitre link : CVE-2026-40466

CVE.ORG link : CVE-2026-40466


JSON object : View

Products Affected

apache

  • activemq
  • activemq_broker
CWE
CWE-20

Improper Input Validation

CWE-94

Improper Control of Generation of Code ('Code Injection')