# CVE-2026-25627: nanomq: OOB Read / Crash (DoS) via Malformed MQTT Remaining Length over WebSocket

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/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.70%, higher than 49% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-30T20:11:08.586Z
- Modified: 2026-06-17T10:24:58.583Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.24.8, NanoMQ’s MQTT-over-WebSocket transport can be crashed by sending an MQTT packet with a deliberately large Remaining Length in the fixed header while providing a much shorter actual payload. The code path copies Remaining Length bytes without verifying that the current receive buffer contains that many bytes, resulting in an out-of-bounds read (ASAN reports OOB / crash). This is remotely triggerable over the WebSocket listener. This issue has been patched in version 0.24.8.

(As written by CVE List.)

## Affected

- nanomq nanomq: < 0.24.8
- emqx nanomq: before 0.24.8

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nanomq/nanomq/security/advisories/GHSA-w4rh-v3h2-j29x> (exploit, vendor-advisory)
- <https://github.com/nanomq/NanoNNG/pull/1405> (issue-tracking, patch)
- <https://github.com/nanomq/NanoNNG/commit/e80b30bad6d855593a68d18f2785bfaca6faf09e> (patch)
- <https://github.com/nanomq/nanomq/releases/tag/0.24.8> (release-notes)

## Sources

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

---

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