
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40466 is an Improper Input Validation and Code Injection vulnerability (CWE-20, CWE-94) in Apache ActiveMQ Broker, Apache ActiveMQ All, and Apache ActiveMQ that allows authenticated attackers to achieve arbitrary code execution on the broker's JVM. It affects all versions before 5.19.6 and versions 6.0.0 through 6.2.4. The vulnerability is a bypass of the previously issued fix for CVE-2026-34197, disclosed and published on April 24, 2026. It carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Feedly).
The root cause is insufficient validation of HTTP Discovery transport URIs when adding connectors via the Jolokia JMX-HTTP bridge. An authenticated attacker can call BrokerView.addNetworkConnector or BrokerView.addConnector through Jolokia with a crafted HTTP Discovery URI; a malicious HTTP endpoint then returns a VM transport, bypassing the input validation introduced in CVE-2026-34197. The attacker leverages the VM transport's brokerConfig parameter to load a remote Spring XML application context via ResourceXmlApplicationContext, which instantiates all singleton beans before BrokerService validates the configuration — enabling arbitrary code execution through bean factory methods such as Runtime.exec(). This attack path is only possible when the activemq-http module is present on the classpath (GitHub Advisory, Apache Advisory).
Successful exploitation grants an authenticated attacker full arbitrary code execution on the ActiveMQ broker's JVM, resulting in high confidentiality, integrity, and availability impact. An attacker can execute arbitrary OS commands, exfiltrate sensitive data processed by the message broker, disrupt broker availability, and potentially pivot laterally to downstream systems that depend on the ActiveMQ infrastructure. Because message brokers often serve as central integration hubs, compromise can cascade across connected applications and services (GitHub Advisory, Feedly).
As of the time of reporting, no public proof-of-concept exploit code has been confirmed, and there is no evidence of active in-the-wild exploitation (Feedly). The EPSS score from the GitHub Advisory Database is approximately 18%, indicating a meaningful probability of exploitation within 30 days (GitHub Advisory). The vulnerability requires low-privilege authentication, making it accessible to any user with broker credentials. Nuclei detection templates have been developed and merged into the ProjectDiscovery nuclei-templates repository, and Emerging Threats released network detection rules (ruleset update v11190, May 11, 2026), indicating active community interest in detection (Feedly). The CVE is not currently listed in the CISA KEV catalog.
activemq-http module on the classpath and the Jolokia endpoint exposed at /api/jolokia/.brokerConfig parameter pointing to an attacker-controlled Spring XML application context file.Runtime.exec() or another code execution method (e.g., a reverse shell command) within its factory or init method.BrokerView.addNetworkConnector or BrokerView.addConnector with the crafted HTTP Discovery URI pointing to the malicious HTTP server.ResourceXmlApplicationContext; Spring instantiates the malicious singleton bean before configuration validation, executing arbitrary code on the broker's JVM (GitHub Advisory, Apache Advisory)./api/jolokia/exec/org.apache.activemq:* invoking addNetworkConnector or addConnector with HTTP Discovery URIs; Spring ResourceXmlApplicationContext initialization log entries referencing remote URLs.bash, sh, cmd.exe, curl, wget, python, powershell); unusual process trees originating from the Java broker process.Upgrade Apache ActiveMQ to version 5.19.6 or 6.2.5, which contain the fix for this vulnerability (GitHub Advisory). If immediate upgrade is not possible, apply the following mitigations: (1) Remove or exclude the activemq-http module from the classpath to eliminate the HTTP Discovery transport attack path; (2) Restrict Jolokia access to trusted administrators only, or disable the Jolokia endpoint entirely if not required; (3) Implement network segmentation to limit access to the ActiveMQ web console and Jolokia interface; (4) Apply strict authentication controls and rotate broker credentials. Monitor broker logs for suspicious connector additions via Jolokia as a compensating control (Feedly).
The vulnerability was discussed on the OSS-Security mailing list shortly after disclosure and received attention from the security community on social platforms including Bluesky and Mastodon (seclists.org). Sangfor's Farsight Labs published a threat intelligence write-up on the vulnerability, and SecureReading covered it as part of a broader advisory on multiple Apache ActiveMQ vulnerabilities enabling RCE (Sangfor, SecureReading). The CVE appeared in the Reddit CVEWatch community's top trending CVEs for the week of June 9, 2026, indicating sustained community interest. ProjectDiscovery added a Nuclei detection template for this CVE in their April 2026 release (ProjectDiscovery Blog).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."