
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-25627 is an out-of-bounds read vulnerability in NanoMQ MQTT Broker's MQTT-over-WebSocket transport that allows unauthenticated remote attackers to crash the broker process, resulting in a Denial of Service. It affects all NanoMQ versions prior to 0.24.8, developed by EMQX. The vulnerability was disclosed on March 30, 2026, and patched in version 0.24.8 released January 9, 2026. It carries a CVSS v3.1 base score of 7.5 (High) per NVD, though the GitHub advisory rates it 6.5 (Moderate) with a low-privilege variant of the vector (GitHub Advisory, Feedly).
The root cause is an out-of-bounds read (CWE-125) in the WebSocket transport layer of NanoMQ, specifically in nng/src/sp/transport/mqttws/nmq_websocket.c within the wstran_pipe_recv_cb() callback and its helper ws_msg_adaptor(). When an MQTT packet is received over WebSocket, the code parses the fixed header's Remaining Length field and then calls nni_msg_append(m, packet + pos, len) using the attacker-controlled len value without verifying that the receive buffer actually contains that many bytes. An attacker can send a valid MQTT CONNECT followed by a malformed PUBLISH packet with a Remaining Length set to a large value (e.g., 4096) while providing only a few bytes of actual payload, causing the code to read past the end of the buffer and crash the process (GitHub Advisory).
Successful exploitation causes the NanoMQ broker process to crash (ASAN-reported OOB read / process termination), resulting in a complete Denial of Service for all connected MQTT clients. Because NanoMQ is commonly deployed as an edge messaging platform in IoT environments, a crash disrupts all message routing and telemetry collection for downstream devices. There is no confidentiality or integrity impact; the vulnerability is limited to availability (GitHub Advisory, Feedly).
A working proof-of-concept Python script is publicly available in the GitHub security advisory, which connects to a live NanoMQ instance and repeatedly sends malformed MQTT PUBLISH packets over WebSocket to trigger the crash. The exploit requires only a valid CONNECT packet followed by the malformed PUBLISH, making it trivially reproducible by unauthenticated attackers. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.013% (0.000130), indicating low current exploitation probability (GitHub Advisory, Feedly).
8083/tcp.ws://<target>:8083/mqtt) using the mqtt subprotocol.\x00\x01 + topic a).ws_msg_adaptor() function will attempt to copy 4096 bytes from a buffer containing only 3 bytes, triggering an out-of-bounds read and crashing the process.nanomq process; crash dumps or core files generated in the NanoMQ working directory.heap-buffer-overflow or out-of-bounds read in ws_msg_adaptor() or wstran_pipe_recv_cb(); broker log entries showing abrupt disconnection of all clients coinciding with a WebSocket session.report3_ASAN.txt) or core dump files in the NanoMQ installation directory following a crash (GitHub Advisory).Upgrade NanoMQ to version 0.24.8 or later, which includes the fix for this vulnerability via the patch in NanoNNG commit e80b30b (NanoMQ Release, Patch Commit). If immediate patching is not possible, restrict network access to the WebSocket listener (default port 8083) to trusted clients only using firewall rules or network segmentation. Enabling authentication on the MQTT broker can raise the bar slightly (requiring a valid CONNECT), but does not prevent exploitation since the vulnerability is triggered after a valid CONNECT (GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."