Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including BrokerService.addNetworkConnector(String). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including BrokerService.addNetworkConnector(String). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
Update org.apache.activemq:activemq-all to 5.19.7; org.apache.activemq:activemq-all to 6.2.6; org.apache.activemq:activemq-broker to 5.19.7; org.apache.activemq:activemq-broker to 6.2.6; org.apache.activemq:apache-activemq to 5.19.7; org.apache.activemq:apache-activemq to 6.2.6 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanApache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue affects org.apache.activemq:activemq-all (maven), org.apache.activemq:activemq-all (maven), org.apache.activemq:activemq-broker (maven), org.apache.activemq:activemq-broker (maven), org.apache.activemq:apache-activemq (maven), org.apache.activemq:apache-activemq (maven). Severity is high. Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including BrokerService.addNetworkConnector(String). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
AI coding agents often install or upgrade packages automatically in maven. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
| org.apache.activemq:activemq-allmaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:activemq-allmaven | >=6.0.0,<6.2.6 | 6.2.6 |
| org.apache.activemq:activemq-brokermaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:activemq-brokermaven | >=6.0.0,<6.2.6 | 6.2.6 |
| org.apache.activemq:apache-activemqmaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:apache-activemqmaven | >=6.0.0,<6.2.6 | 6.2.6 |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL GuardUpdate org.apache.activemq:activemq-all to 5.19.7; org.apache.activemq:activemq-all to 6.2.6; org.apache.activemq:activemq-broker to 5.19.7; org.apache.activemq:activemq-broker to 6.2.6; org.apache.activemq:apache-activemq to 5.19.7; org.apache.activemq:apache-activemq to 6.2.6 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanApache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue affects org.apache.activemq:activemq-all (maven), org.apache.activemq:activemq-all (maven), org.apache.activemq:activemq-broker (maven), org.apache.activemq:activemq-broker (maven), org.apache.activemq:apache-activemq (maven), org.apache.activemq:apache-activemq (maven). Severity is high. Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including BrokerService.addNetworkConnector(String). An authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the "masterslave:// " URL which can allow loading a 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.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
AI coding agents often install or upgrade packages automatically in maven. A high vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|---|---|
| org.apache.activemq:activemq-allmaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:activemq-allmaven | >=6.0.0,<6.2.6 | 6.2.6 |
| org.apache.activemq:activemq-brokermaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:activemq-brokermaven | >=6.0.0,<6.2.6 | 6.2.6 |
| org.apache.activemq:apache-activemqmaven | <5.19.7 | 5.19.7 |
| org.apache.activemq:apache-activemqmaven | >=6.0.0,<6.2.6 | 6.2.6 |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard