Out-of-bounds read in NanoMQ - CVE-2026-25627

 

Out-of-bounds read in NanoMQ - CVE-2026-25627

Published: April 24, 2026


Vulnerability identifier: #VU127589
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-25627
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: NanoMQ
Affected software:
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.


How to mitigate CVE-2026-25627

Install security update from vendor's website.

Sources