# CVE-2026-40046: Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT: Missing fix for CVE-2025-66168: MQTT control packet remaining length field is not properly validated

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-04-09 · Modified: 2026-04-10
- Aliases: UBUNTU-CVE-2026-40046, CGA-2c6p-9wh5-v7q4, CGA-3m3q-858x-rxjr, CGA-cpww-64p7-vff9, CGA-ffmw-qwf4-mvg7, CGA-fgvm-mjmx-4x64, CGA-gc8m-f3px-pcqh, CGA-j6p8-2xpq-w5f3, CGA-jcjm-9gx7-v5cx, CGA-p8mg-vjx5-g5j6, GHSA-xvqc-pp94-fmpx, BIT-activemq-2026-40046, CGA-q66x-qj4m-m2x4, CGA-r995-cf3x-5mgh, CGA-v98x-4jph-xq6p
- Record: https://cvemate.com/vulnerability/CVE-2026-40046 · JSON: https://cvemate.com/vulnerability/CVE-2026-40046/json

## Description

```text
Integer Overflow or Wraparound vulnerability in Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ MQTT.

The fix for "CVE-2025-66168: MQTT control packet remaining length field is not properly validated" was only applied to 5.19.2 (and future 5.19.x) releases but was missed for all 6.0.0+ versions.


This issue affects Apache ActiveMQ: from 6.0.0 before 6.2.4; Apache ActiveMQ All: from 6.0.0 before 6.2.4; Apache ActiveMQ MQTT: from 6.0.0 before 6.2.4.



Users are recommended to upgrade to version 6.2.4 or a 5.19.x version starting with 5.19.2 or later (currently latest is 5.19.5), which fixes the issue.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.39%, percentile 35.237%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache activemq: ≥ 6.0.0, \< 6.2.4
- apache software foundation apache activemq all: ≥ 6.0.0, \< 6.2.4
- apache software foundation apache activemq mqtt: ≥ 6.0.0, \< 6.2.4
- chainguard apache-activemq-6.1 (Chainguard): All versions (No fix recorded)
- chainguard apache-activemq-fips-6.1 (Chainguard): All versions (No fix recorded)
- ubuntu activemq (Ubuntu): All versions (No fix recorded)
- org.apache.activemq activemq-all (Maven): ≥ 6.0.0, \< 6.2.4
- org.apache.activemq activemq-mqtt (Maven): ≥ 6.0.0, \< 6.2.4
- org.apache.activemq apache-activemq (Maven): ≥ 6.0.0, \< 6.2.4

## References

- <https://www.cve.org/CVERecord?id=CVE-2025-66168>
- <https://activemq.apache.org/security-advisories.data/CVE-2026-40046-announcement.txt>
- <https://lists.apache.org/thread/zdntj5rcgjjzrpow84o339lzldy68zrg>
- <https://ubuntu.com/security/CVE-2026-40046>
- <https://www.cve.org/CVERecord?id=CVE-2026-40046>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40046>

---

Data as of 2026-12-05T04:23:16.185Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
