Integer overflow in Apache ActiveMQ
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-190 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache ActiveMQ | before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 | Patch available | CNA |
| Apache | Apache ActiveMQ All Module | before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 | Patch available | CNA |
| Apache | Apache ActiveMQ MQTT Module | before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 | 5.19.2, 6.1.9, 6.2.1 | Patch available | CNA |
| — | org.apache.activemq:apache-activemq (Maven) | before 5.19.2 | 5.19.2 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:apache-activemq (Maven) | 6.0.0 to before 6.1.9 | 6.1.9 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:apache-activemq (Maven) | 6.2.0 to before 6.2.1 | 6.2.1 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-all (Maven) | before 5.19.2 | 5.19.2 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-all (Maven) | 6.0.0 to before 6.1.9 | 6.1.9 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-all (Maven) | 6.2.0 to before 6.2.1 | 6.2.1 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-mqtt (Maven) | before 5.19.2 | 5.19.2 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-mqtt (Maven) | 6.0.0 to before 6.1.9 | 6.1.9 | Patch available | GHSA-c825-6ph3-4h84 |
| — | org.apache.activemq:activemq-mqtt (Maven) | 6.2.0 to before 6.2.1 | 6.2.1 | Patch available | GHSA-c825-6ph3-4h84 |
- Apache ActiveMQ VendorApache Affected before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 Fixed in 5.19.2, 6.1.9, 6.2.1 Patch available CNA
- Apache ActiveMQ All Module VendorApache Affected before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 Fixed in 5.19.2, 6.1.9, 6.2.1 Patch available CNA
- Apache ActiveMQ MQTT Module VendorApache Affected before 5.19.2; 6.0.0 to before 6.1.9; 6.2.0 to before 6.2.1 Fixed in 5.19.2, 6.1.9, 6.2.1 Patch available CNA
- org.apache.activemq:apache-activemq (Maven) Vendor— Affected before 5.19.2 Fixed in 5.19.2 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:apache-activemq (Maven) Vendor— Affected 6.0.0 to before 6.1.9 Fixed in 6.1.9 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:apache-activemq (Maven) Vendor— Affected 6.2.0 to before 6.2.1 Fixed in 6.2.1 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-all (Maven) Vendor— Affected before 5.19.2 Fixed in 5.19.2 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-all (Maven) Vendor— Affected 6.0.0 to before 6.1.9 Fixed in 6.1.9 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-all (Maven) Vendor— Affected 6.2.0 to before 6.2.1 Fixed in 6.2.1 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-mqtt (Maven) Vendor— Affected before 5.19.2 Fixed in 5.19.2 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-mqtt (Maven) Vendor— Affected 6.0.0 to before 6.1.9 Fixed in 6.1.9 Patch available GHSA-c825-6ph3-4h84
- org.apache.activemq:activemq-mqtt (Maven) Vendor— Affected 6.2.0 to before 6.2.1 Fixed in 6.2.1 Patch available GHSA-c825-6ph3-4h84
Remediation
- Fix · CNA Apache ActiveMQ (Apache Software Foundation) Fixed in 5.19.2, 6.1.9, 6.2.1
- Fix · CNA Apache ActiveMQ All Module (Apache Software Foundation) Fixed in 5.19.2, 6.1.9, 6.2.1
- Fix · CNA Apache ActiveMQ MQTT Module (Apache Software Foundation) Fixed in 5.19.2, 6.1.9, 6.2.1
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:apache-activemq (Maven) Fixed in 5.19.2 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:apache-activemq (Maven) Fixed in 6.1.9 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:apache-activemq (Maven) Fixed in 6.2.1 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-all (Maven) Fixed in 5.19.2 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-all (Maven) Fixed in 6.1.9 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-all (Maven) Fixed in 6.2.1 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-mqtt (Maven) Fixed in 5.19.2 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-mqtt (Maven) Fixed in 6.1.9 Advisory →
- Fix · GHSA-c825-6ph3-4h84 org.apache.activemq:activemq-mqtt (Maven) Fixed in 6.2.1 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Enterprise Application Platform Expansion Pack | Affected | No fix yet: Fix deferred |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-66168
- 2026-10-03 Alias added: GHSA-c825-6ph3-4h84
- 2026-10-31 Priority changed: LOW → MEDIUM
References
Advisory 3
More Apache Activemq vulnerabilities
- TI-2023-25106 Deserialization of untrusted data in Apache ActiveMQ KEVCVSS 3.1CRITICAL 10.0
- TI-2016-02587 The Fileserver web application in Apache ActiveMQ 5.x before 5.14.0 allows remote… KEVCVSS 3.1CRITICAL 9.8
- TI-2026-26494 Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Authenticated users could perform RCE via Jolokia MBeans KEVCVSS 3.1HIGH 8.8
- TI-2013-05951 Xstream API versions up to 1.4.6 and version 1.4.10, if the security framework has not… CVSS 3.1CRITICAL 9.8
- TI-2021-04451 XStream is vulnerable to an Arbitrary Code Execution attack CVSS 3.1CRITICAL 9.1
- TI-2021-04446 XStream is vulnerable to an Arbitrary Code Execution attack CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-66168 · CVE Program
- CVE-2025-66168 · NVD
- FIRST EPSS
- GHSA-c825-6ph3-4h84 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-66168 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences