Out-of-bounds read in NanoMQ - CVE-2026-25627
Published: April 24, 2026
NanoMQ
Detailed vulnerability description
The vulnerability allows a remote user to cause a denial of service.
The vulnerability exists due to out-of-bounds read in ws_msg_adaptor() in nng/src/sp/transport/mqttws/nmq_websocket.c when processing MQTT packets over the WebSocket listener. A remote user can send a specially crafted MQTT packet with a large Remaining Length and a shorter actual payload to cause a denial of service.
Triggering the issue requires sending a malformed PUBLISH message after a valid CONNECT over the MQTT-over-WebSocket transport.