CVE-2026-40466
8.8Apache Software Foundation · ActiveMQ
An authenticated code injection vulnerability in Apache ActiveMQ allows attackers to achieve remote code execution by bypassing previous security fixes via the Jolokia interface.
Executive summary
Apache ActiveMQ is vulnerable to remote code execution through improper input validation, allowing an authenticated attacker to trigger arbitrary code execution on the broker's JVM.
Vulnerability
This is an improper input validation and code injection flaw where an authenticated attacker can bypass prior security protections by adding a malicious network connector via Jolokia. By leveraging the HTTP Discovery transport, an attacker can load a remote Spring XML application context, leading to arbitrary code execution during bean instantiation.
Business impact
The vulnerability carries a CVSS score of 8.8, reflecting its high severity and potential for full system compromise. Successful exploitation grants an attacker the ability to execute arbitrary commands with the privileges of the ActiveMQ process, potentially leading to total data loss, unauthorized access to sensitive message queues, and complete loss of system integrity.
Remediation
Immediate Action: Upgrade to Apache ActiveMQ version 5.19.6 or 6.2.5 immediately to incorporate the necessary input validation fixes.
Proactive Monitoring: Monitor Jolokia access logs for suspicious additions of network connectors or unusual HTTP discovery transport configurations.
Compensating Controls: Restrict access to the Jolokia management interface to trusted administrative IP addresses only, as this is the primary vector for exploitation.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Given the critical nature of remote code execution vulnerabilities in messaging infrastructure, organizations must prioritize patching Apache ActiveMQ to the stated fixed versions. Administrators should perform an audit of current ActiveMQ configurations to ensure that the Jolokia interface is properly restricted and that no unauthorized connectors have been added. Failure to remediate this vulnerability may result in full compromise of the broker environment.
More Apache Software Foundation CVEs
Sources
Originally found and disclosed by Fatih Ersinadim, gggggggga, per the CVE Program record.