Remote Code Execution Vulnerability in Apache ActiveMQ 5.x

activemq Updated 02 Oct 2025

Summary

08/01/2016
N/A
Yes i
Critical
9.8

CVE-2015-5254: 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) ObjectMess... Affects activemq versions < 5.13.2+dfsg-1. Fixed in 5.13.2+dfsg-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Apache ActiveMQ is an open-source message broker that facilitates communication between applications through the Java Message Service (JMS). It is widely used for its reliability and scalability in enterprise messaging solutions. However, versions prior to 5.13.0 are vulnerable to a serious security flaw that allows unauthorized remote code execution due to improper serialization restrictions.

Vulnerability Detail

The vulnerability, identified as CVE-2015-5254, arises from Apache ActiveMQ's failure to restrict the classes that can be serialized within the broker. This oversight enables remote attackers to craft malicious serialized JMS ObjectMessage objects, which can lead to arbitrary code execution on the server. The implications of this vulnerability are severe, as it can compromise the integrity and confidentiality of the system, potentially allowing attackers to gain full control over the affected server.

How To Fix

Minimum fixed version

5.13.2+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade activemq

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, consider implementing network-level restrictions to limit access to the ActiveMQ broker. This can be done by configuring firewalls to allow only trusted IP addresses to connect to the broker, thereby reducing the risk of exploitation until the upgrade can be performed.

Conclusion

CVE-2015-5254 represents a critical vulnerability in Apache ActiveMQ that can lead to remote code execution. It is essential for users to upgrade to version 5.13.2 or later to mitigate this risk. Additionally, implementing network-level restrictions can serve as a temporary workaround until the upgrade is completed.

See every vulnerability recorded for activemq →

Share this vulnerability

FAQ

CVE-2015-5254 is a vulnerability in Apache ActiveMQ that allows remote attackers to execute arbitrary code through crafted serialized JMS ObjectMessage objects.

All versions of Apache ActiveMQ 5.x prior to 5.13.0 are affected by this vulnerability.

Exploitation of this vulnerability can lead to unauthorized access, data breaches, and complete control over the affected server.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for CVE-2015-5254 is 9.8, indicating a critical level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for activemq.

How To Fix

Minimum fixed version

5.13.2+dfsg-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade activemq

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback