CVE-2025-54539: Apache ActiveMQ NMS AMQP Client: Deserialization of Untrusted Data
A Deserialization of Untrusted Data vulnerability exists in the Apache ActiveMQ NMS AMQP Client.
This issue affects all versions of Apache ActiveMQ NMS AMQP up to and including 2.3.0, when establishing connections to untrusted AMQP servers. Malicious servers could exploit unbounded deserialization logic present in the client to craft responses that may lead to arbitrary code execution on the client side.
Although version 2.1.0 introduced a mechanism to restrict deserialization via allow/deny lists, the protection was found to be bypassable under certain conditions.
In line with Microsoft’s deprecation of binary serialization in .NET 9, the project is evaluating the removal of .NET binary serialization support from the NMS API entirely in future releases.
Mitigation and Recommendations: Users are strongly encouraged to upgrade to version 2.4.0 or later, which resolves the issue. Additionally, projects depending on NMS-AMQP should migrate away from .NET binary serialization as part of a long-term hardening strategy.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
nuget/Apache.NMS.AMQPto a version that resolves this vulnerability.Fixed in 2.4.0 - Upgrade
Upgrade
Apache ActiveMQ NMS AMQP Clientto a version that resolves this vulnerability.Fixed in 2.4.0 - Compensating control
Migrate projects depending on NMS-AMQP away from .NET binary serialization as a long-term hardening measure.
Event History
Frequently Asked Questions
What is the severity of CVE-2025-54539?
CVE-2025-54539 is classified as a critical severity vulnerability due to its potential to allow remote code execution.
How do I fix CVE-2025-54539?
To mitigate CVE-2025-54539, upgrade to Apache ActiveMQ NMS AMQP version 2.3.1 or later, which addresses the deserialization vulnerability.
What versions of Apache ActiveMQ NMS AMQP are affected by CVE-2025-54539?
CVE-2025-54539 affects all versions of Apache ActiveMQ NMS AMQP up to and including version 2.3.0.
What types of attacks can be executed through CVE-2025-54539?
Exploitation of CVE-2025-54539 could allow attackers to execute arbitrary code on the client through malicious AMQP server connections.
Is CVE-2025-54539 only relevant for specific configurations of Apache ActiveMQ NMS AMQP?
CVE-2025-54539 is relevant for any setup that involves connecting to untrusted AMQP servers, making it a widespread concern across all configurations.