CVE-2025-66168
Apache ActiveMQ, Apache ActiveMQ All Module, Apache ActiveMQ MQTT Module: MQTT control packet remaining length field is not properly validated
Check your servers for CVE-2025-66168
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-66168 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
WARNING:
Users of 6.x should upgrade to 6.2.4 or later as the fix was missed in previous 6.x releases.
See the following for more details: https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt https://www.cve.org/CVERecord?id=CVE-2026-40046
Original Report:
Apache ActiveMQ does not properly validate the remaining length field which may lead to an overflow during the decoding of malformed packets. When this integer overflow occurs, ActiveMQ may incorrectly compute the total Remaining Length and subsequently misinterpret the payload as multiple MQTT control packets which makes the broker susceptible to unexpected behavior when interacting with non-compliant clients. This behavior violates the MQTT v3.1.1 specification, which restricts Remaining Length to a maximum of 4 bytes. The scenario occurs on established connections after the authentication process. Brokers that are not enabling mqtt transport connectors are not impacted.
This issue affects Apache ActiveMQ: before 5.19.2, 6.0.0 to 6.1.8, and 6.2.0
Users are recommended to upgrade to version 5.19.2, 6.1.9, or 6.2.1, which fixes the issue.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity low, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.82%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 58.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 4 Mar 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-190 Integer Overflow or Wraparound
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
Apache ActiveMQ
package
org.apache.activemq:apache-activemq |
affected before 5.19.2 affected from 6.0.0, before 6.1.9 affected from 6.2.0, before 6.2.1
Other versions: unaffected
|
|
Apache ActiveMQ All Module
package
org.apache.activemq:activemq-all |
affected before 5.19.2 affected from 6.0.0, before 6.1.9 affected from 6.2.0, before 6.2.1
Other versions: unaffected
|
|
Apache ActiveMQ MQTT Module
package
org.apache.activemq:activemq-mqtt |
affected before 5.19.2 affected from 6.0.0, before 6.1.9 affected from 6.2.0, before 6.2.1
Other versions: unaffected
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-66168 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-66168RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-66168Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-66168
trivy image --scanners vuln IMAGE | grep CVE-2025-66168
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://lists.apache.org/thread/13n8mkrb2jf2y6yyhpgrkmpqcm7djyto lists.apache.org · vendor advisory
Other references
- https://www.cve.org/CVERecord?id=CVE-2026-40046 cve.org · related
- https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt activemq.apache.org · related
- http://www.openwall.com/lists/oss-security/2026/03/03/5 openwall.com
Source: the record CVE-2025-66168 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse