CVE-2026-25627 nanomq: OOB Read / Crash (DoS) via Malformed MQTT Remaining Length over WebSocket
HighCVSS 7.5
EPSS 0.50%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| emqx nanomq | < 0.24.8 | 0.24.8 | Fixed |
| nanomq | = < 0.24.8 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nanomq | = < 0.24.8 | No fix listed |
| emqx nanomq | < 0.24.8 | 0.24.8 |
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