Integer Overflow Vulnerability in Apache ActiveMQ Affects MQTT Control Packets

5.4MEDIUM

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
Apache ActiveMQ 0 to below 5.19.2 is vulnerable
Apache ActiveMQ 6.0.0 to below 6.1.9 is vulnerable
Apache ActiveMQ 6.2.0 to below 6.2.1 is vulnerable
Apache ActiveMQ All Module 0 to below 5.19.2 is vulnerable
Apache ActiveMQ All Module 6.0.0 to below 6.1.9 is vulnerable
Apache ActiveMQ All Module 6.2.0 to below 6.2.1 is vulnerable

Install the Apache ActiveMQ release that fixes your version line, or later:

5.19.26.1.96.2.1

Install the Apache ActiveMQ All Module release that fixes your version line, or later:

5.19.26.1.96.2.1

Install the Apache ActiveMQ MQTT Module release that fixes your version line, or later:

5.19.26.1.96.2.1
Read the vendor advisory β†—
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

Key Exchange Vulnerability in Apache Tomcat

CVE-2026-133325
ApacheApache TomcatπŸ˜„πŸ‘Ύ9.8CRITICAL

Improper Exception Management in Apache Tomcat Affects Multiple Versions

CVE-2026-116561
ApacheApache TomcatπŸ˜„9.1CRITICAL

Deserialization Vulnerability in Apache Roller Affects Multiple Versions

CVE-2026-129448
ApacheApache RollerπŸ˜„πŸ‘Ύ9.8CRITICAL
View more Apache vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged

Credit

Gai Tanaka <641.work123@gmail.com>
.