CVE-2025-66168 Apache ActiveMQ, Apache ActiveMQ All Module, Apache ActiveMQ MQTT Module: MQTT control packet remaining length field is not properly validated
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
15 packages: 4 fixed, 11 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/activemq(Debian 12) | = 5.17.2+dfsg-2; = 5.17.2+dfsg-2+deb12u1; = 5.17.6+dfsg-1; = 5.17.6+dfsg-2 +1 more | No fix listed | No fix yet |
| debian/activemq(Debian 13) | = 5.17.6+dfsg-2; All versions | No fix listed | No fix yet |
| redhat/activemq-all(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/activemq-mqtt(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/activemq-mqtt(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/activemq-mqtt(Red Hat jboss_fuse 7) | All versions | No fix listed | No fix yet |
| redhat/activemq-mqtt(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| ubuntu/activemq(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/activemq(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/activemq(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/activemq(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| apache activemq | < 5.19.2; = 6.2.0; >= 6.0.0, <= 6.1.8 | 5.19.2 | Fixed |
| org.apache.activemq/activemq-all(Maven) | < 5.19.2; = 4.1.2; = 5.0.0; = 5.1.0 +97 more | 5.19.2, 6.1.9, 6.2.1 | Fixed |
| org.apache.activemq/activemq-mqtt(Maven) | < 5.19.2; = 5.8.0; = 5.9.0; = 5.9.1 +82 more | 5.19.2, 6.1.9, 6.2.1 | Fixed |
| org.apache.activemq/apache-activemq(Maven) | < 5.19.2; = 4.1.1; = 4.1.2; = 5.0.0 +98 more | 5.19.2, 6.1.9, 6.2.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.activemq/apache-activemq(Maven) | < 5.19.2 | 5.19.2 |
| org.apache.activemq/apache-activemq(Maven) | = 4.1.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 4.1.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.0.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.1.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.10.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.10.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.10.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.11.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.11.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.11.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.11.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.11.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.12.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.12.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.12.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.12.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.13.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.14.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.14.1 | No fix listed |
Show 175 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.apache.activemq/apache-activemq(Maven) | = 5.14.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.14.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.14.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.14.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.10 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.11 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.12 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.13 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.14 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.15 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.16 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.6 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.7 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.8 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.15.9 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.6 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.7 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.16.8 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.6 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.17.7 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.6 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.18.7 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.19.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.19.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.2.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.3.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.3.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.3.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.4.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.4.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.4.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.4.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.5.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.5.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.6.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.7.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.8.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.9.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 5.9.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | >= 6.0.0, < 6.1.9 | 6.1.9 |
| org.apache.activemq/apache-activemq(Maven) | = 6.0.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.0.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.0 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.1 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.2 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.3 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.4 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.5 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.6 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.7 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | = 6.1.8 | No fix listed |
| org.apache.activemq/apache-activemq(Maven) | >= 6.2.0, < 6.2.1 | 6.2.1 |
| org.apache.activemq/apache-activemq(Maven) | = 6.2.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | < 5.19.2 | 5.19.2 |
| org.apache.activemq/activemq-all(Maven) | = 4.1.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.0.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.1.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.10.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.10.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.10.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.11.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.11.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.11.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.11.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.11.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.12.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.12.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.12.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.12.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.13.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.14.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.10 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.11 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.12 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.13 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.14 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.15 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.16 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.6 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.7 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.8 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.15.9 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.6 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.7 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.16.8 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.6 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.17.7 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.6 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.18.7 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.19.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.19.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.2.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.3.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.3.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.3.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.4.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.4.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.4.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.4.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.5.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.5.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.6.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.7.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.8.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.9.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 5.9.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | >= 6.0.0, < 6.1.9 | 6.1.9 |
| org.apache.activemq/activemq-all(Maven) | = 6.0.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.0.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.0 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.1 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.2 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.3 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.4 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.5 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.6 | No fix listed |
| org.apache.activemq/activemq-all(Maven) | = 6.1.7 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- activemq.apache.org related
- github.com product
- lists.apache.org mailing-list vendor-advisory
- www.cve.org related
- www.openwall.com mailing-list third-party-advisory
- Debian Security Tracker CVE-2025-66168 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2444356 issue-tracking
- bugs.debian.org issue-tracking