# CVE-2026-22040: NanoMQ 0.24.6 Use-After-Free Leading to Heap Corruption and Broker Crash

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-04T21:55:11.238Z
- Modified: 2026-06-17T10:19:24.520Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. In version 0.24.6, by generating a combined traffic pattern of high-frequency publishes and rapid reconnect/kick-out using the same ClientID and massive subscribe/unsubscribe jitter, it is possible to reliably trigger heap memory corruption in the Broker process, causing it to exit immediately with SIGABRT due to free(): invalid pointer. As of time of publication, no known patched versions are available.

(As written by CVE List.)

## Affected

- nanomq nanomq: = 0.24.6
- emqx nanomq: before 0.24.6

## References

- <https://github.com/nanomq/nanomq/security/advisories/GHSA-v57q-w88m-424r> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-22040](https://www.cve.org/CVERecord?id=CVE-2026-22040), CVE Terms of Use, modified 2026-03-05
- NVD: [CVE-2026-22040](https://nvd.nist.gov/vuln/detail/CVE-2026-22040), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-22040 · Whole record: https://cve.day/CVE-2026-22040.json · Rebuilt by cve.day 2026-11-25T22:59:15.226Z
