Integer Overflow Vulnerability in Apache ActiveMQ Affects MQTT Control Packets
Key Information:
- Vendor
Apache
- CVE ID
- CVE ID:
- CVE-2025-66168
- Vendor
- CVE Published:
- 4 March 2026
- Fixed in
- Fixed in:
- 5.19.2, 6.1.9, 6.2.1
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Partly: Works over the network, but needs a login
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Monitor
Low risk for most. Patch in your normal cycle.
What to do
1Update to a fixed version
Install the Apache ActiveMQ release that fixes your version line, or later:
Install the Apache ActiveMQ All Module release that fixes your version line, or later:
Install the Apache ActiveMQ MQTT Module release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Apache ActiveMQ. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Monitor"
- Its CVSS severity is medium (5.4).
What is CVE-2025-66168?
The vulnerability in Apache ActiveMQ stems from improper validation of the remaining length field, potentially causing an integer overflow during packet decoding. This flaw can result in ActiveMQ miscalculating the total remaining length and erroneously interpreting the payload, which may lead to unexpected behaviors when interacting with non-compliant MQTT clients. This breach violates the MQTT v3.1.1 protocol specification, which limits the remaining length to a maximum of four bytes. The issue arises on established connections following successful authentication. It is advised that users upgrade to the fixed versions: 5.19.2, 6.1.9, or 6.2.1 to mitigate this vulnerability.
References
More Apache Vulnerabilities
Key Exchange Vulnerability in Apache Tomcat
Improper Exception Management in Apache Tomcat Affects Multiple Versions
Deserialization Vulnerability in Apache Roller Affects Multiple Versions
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction