CVE-2015-5254: Input Validation
Apache ActiveMQ 5.x before 5.13.0 does not restrict the classes that can be serialized in the broker, which allows remote attackers to execute arbitrary code via a crafted serialized Java Message Service (JMS) ObjectMessage object.
Other sources
Apache ActiveMQ could allow a remote attacker to execute arbitrary code on the system, caused by the failure to restrict the classes that can be serialized in the broker. An attacker could exploit this vulnerability using a specially crafted serialized Java Message Service (JMS) ObjectMessage object to execute arbitrary code on the system.
— IBM
JMS Object messages depends on Java Serialization for marshaling/unmashaling of the message payload. There are a couple of places inside the broker where deserialization can occur, like web console or stomp object message transformation. As deserialization of untrusted data can leaed to security flaws as demonstrated in various reports, this leaves the broker vunerable to this attack vector. Additionally, applications that consume ObjectMessage type of messages can be vunerable as they deserlize objects on ObjectMessage.getObject() calls.
This issue was fixed upstream in Apache ActiveMQ 5.13.0. Additionally, when using ObjectMessage message type, you need to explicitly list trusted packages. To see how to do that, please take a look at:
http://activemq.apache.org/objectmessage.html
External References:
http://activemq.apache.org/security-advisories.data/CVE-2015-5254-announcement.txt
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.apache.activemq:activemq-clientto a version that resolves this vulnerability.Fixed in 5.12.2 - Upgrade
Upgrade
maven/org.apache.activemq:activemq-clientto a version that resolves this vulnerability.Fixed in 5.11.3 - Upgrade
Upgrade
redhat/ActiveMQto a version that resolves this vulnerability.Fixed in 5.13.0 - Upgrade
Upgrade
Apache ActiveMQto a version that resolves this vulnerability.Fixed in 5.13.0 - Configuration
Explicitly list trusted packages when using ObjectMessage messages.
Applications consuming JMS ObjectMessage messages trusted packages = explicitly listed
Event History
Frequently Asked Questions
What is CVE-2015-5254?
CVE-2015-5254 is a vulnerability in Apache ActiveMQ 5.x before 5.13.0 that allows a remote attacker to execute arbitrary code on the system.
How severe is CVE-2015-5254?
CVE-2015-5254 has a severity rating of 9.8 (critical).
How does CVE-2015-5254 affect Apache ActiveMQ?
CVE-2015-5254 affects Apache ActiveMQ versions 5.0.0 to 5.12.1.
How can an attacker exploit CVE-2015-5254?
An attacker can exploit CVE-2015-5254 by using a specially crafted serialized Java Message Service (JMS) ObjectMessage object.
Where can I find more information about CVE-2015-5254?
You can find more information about CVE-2015-5254 in the Apache ActiveMQ security advisory and the Fedora Project mailing list.