Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Impact | This vulnerability carries a CVSS 3.1 score of 6.5 with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, indicating network-accessible remote denial of service requiring authenticated access with low attack complexity. The CVSS impact assessment confirms no confidentiality or integrity impact, only availability damage (high severity for DoS). The attack vector is network-based with no user interaction required, and attack complexity is low, making exploitation straightforward once authentication is obtained. The requirement for PR:L (low privilege level) reduces immediate risk for publicly exposed brokers but elevates concern for multi-tenant or internal deployments where users have basic access. The denial of service impact is significant in edge messaging scenarios where NanoMQ may be critical infrastructure; a remotely triggered crash could disrupt IoT device communication pipelines. The vulnerability affects widespread versions (all prior to 0.24.8), suggesting meaningful exposure across deployed instances. Compared to remote code execution vulnerabilities, the impact is contained to availability, but DoS remains a legitimate operational threat depending on deployment criticality. |
| Exploit ScenarioDerived | An authenticated attacker connected to a NanoMQ broker's WebSocket listener constructs a malformed MQTT CONNECT or other control packet where the Remaining Length field in the fixed header specifies an artificially large value (e.g., 65535 bytes) while the actual WebSocket frame payload contains significantly fewer bytes. When the broker's WebSocket handler attempts to copy the number of bytes indicated by Remaining Length into its buffer without bounds validation, it reads beyond the available data, triggering an out-of-bounds memory access that crashes the broker process. Repeated exploitation causes repeated denial of service until the broker is manually restarted, disrupting MQTT message routing for all connected clients in that cluster. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 30, 2026
NanoMQ MQTT Broker versions prior to 0.24.8 can be remotely crashed via MQTT-over-WebSocket by sending a packet with a maliciously inflated Remaining Length field in the fixed header while providing a shorter actual payload, triggering an out-of-bounds read that causes denial of service. Authenticated attackers can exploit this condition over the WebSocket listener with low attack complexity. Vendor-released patch available in version 0.24.8.
RemediationAI
Vendor-released patch available: Upgrade NanoMQ to version 0.24.8 or later immediately. The underlying fix was merged via upstream commit e80b30bad6d855593a68d18f2785bfaca6faf09e (https://github.com/nanomq/NanoNNG/commit/e80b30bad6d855593a68d18f2785bfaca6faf09e) and is also available in pull request PR/1405 (https://github.com/nanomq/NanoNNG/pull/1405). During the patching window, operators should restrict access to the MQTT-over-WebSocket listener to trusted networks if possible, implement network-level rate limiting on WebSocket connections to mitigate rapid repeated exploitation attempts, and monitor broker logs for unexpected crashes or ASAN reports. Organizations unable to immediately upgrade should prioritize patching given the remote accessibility and low complexity of exploitation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability exists in NanoMQ's MQTT-over-WebSocket transport layer implementation. MQTT packets include a Remaining Length field in the fixed header that indicates the size of the variable header and payload. The affected code path attempts to copy the number of bytes specified by Remaining Length directly from the receive buffer without first validating that sufficient bytes are actually present in the current buffer state. This results in CWE-125 (Out-of-bounds Read), where the memory access operation reads beyond allocated buffer boundaries. The MQTT protocol uses variable-length encoding for the Remaining Length field, but improper bounds checking during buffer consumption in the WebSocket handler allows an attacker to craft a malformed packet that causes ASAN (AddressSanitizer) to detect and report the out-of-bounds condition, leading to broker crash. The CPE cpe:2.3:a:nanomq:nanomq:*:*:*:*:*:*:*:* indicates all NanoMQ versions are affected up to and excluding 0.24.8.
Know when Nanomq gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
NanoMQ 0.17.5 has a one-byte heap-based buffer over-read in the conn_handler function of mqtt_parser.c when it processes
CVE-2024-42646 is a segmentation fault vulnerability in NanoMQ v0.21.10 that allows unauthenticated remote attackers to
A data race in NanoMQ MQTT Broker versions prior to 0.24.2 can free subscription-info list memory while another thread s
Null Pointer Dereference vulnerability in topic_filtern function in mqtt_parser.c in NanoMQ 0.21.7 allows attackers to c
A use-after-free vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remotely e
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
A heap buffer overflow vulnerability exists in NanoMQ 0.17.2. Rated high severity (CVSS 7.5), this vulnerability is remo
In NanoMQ v0.15.0-0, segment fault with Null Pointer Dereference occurs in the process of decoding subinfo_decode and un
In NanoMQ v0.15.0-0, a Heap overflow occurs in copyn_utf8_str function of mqtt_parser.c. Rated high severity (CVSS 7.5),
In NanoMQ v0.15.0-0, Heap overflow occurs in read_byte function of mqtt_code.c. Rated high severity (CVSS 7.5), this vul
A heap-buffer-overflow vulnerability in the read_byte function in NanoMQ v.0.21.7 allows attackers to cause a denial of
EUVD-2026-17195
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB