Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify NanoMQ REST API endpoint
-
DeliveryCraft HTTP request with oversized query parameters
-
ExploitTrigger off-by-one overflow in uri_param_parse
-
ExecutionCorrupt heap metadata
-
ImpactCrash broker process (denial of service)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the NanoMQ REST API feature to be enabled and network-accessible to the attacker. The REST API is a standard component of NanoMQ but may not be exposed in all deployments depending on firewall rules, network segmentation, or configuration choices to disable HTTP management interfaces. No authentication is required (CVSS PR:N) and default configurations with REST API enabled are vulnerable. No user interaction needed (UI:N). Exploitation is NOT limited by specific MQTT protocol configurations, client connections, or broker clustering modes - any NanoMQ instance with reachable REST API endpoints on TCP ports (typically 8081 or 18083) can be targeted. Attack complexity is low (AC:L) as crafting the malicious query parameter requires only basic HTTP client tools and knowledge of the parser flaw. |
| Impact | Real-world risk is moderate-high for internet-exposed NanoMQ deployments despite the 7.7 CVSS score. The CVSS vector confirms worst-case network exploitability: AV:N (network accessible), AC:L (low complexity), PR:N (no authentication), UI:N (no user interaction). However, the impact is limited to availability (VA:H) with no confidentiality or integrity compromise in the base metric. The E:P (Proof-of-concept) indicator confirms exploit code exists, lowering the skill barrier for attackers. Absence from CISA KEV suggests this is not yet widely exploited in the wild, likely due to NanoMQ's niche deployment in edge/IoT environments rather than enterprise infrastructure. The primary risk is denial of service against MQTT messaging infrastructure, which could disrupt IoT device communications, industrial sensors, or edge data pipelines. Organizations using NanoMQ in production edge deployments face higher risk than those in development/testing. The availability of a clean vendor patch (0.24.11) and specific commit reference (69a97b3) indicates straightforward remediation, reducing residual risk for patched systems. Attack automation is feasible given the low complexity and documented POC, making this a realistic target for vulnerability scanners and opportunistic attacks against exposed REST API endpoints. |
| Exploit ScenarioDerived | An attacker identifies an internet-exposed NanoMQ broker instance through port scanning or IoT device reconnaissance (common on ports 8081/18083 for REST API). They craft an HTTP GET or POST request to any REST API endpoint with maliciously formatted query parameters containing precise byte sequences to trigger the off-by-one overflow in uri_param_parse. The null byte write corrupts heap metadata, causing NanoMQ to crash and disrupting MQTT messaging services for connected IoT devices or edge applications. With proof-of-concept code publicly available, attackers can automate this attack against vulnerable targets without deep exploit development expertise. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 20, 2026
Heap buffer overflow in NanoMQ MQTT Broker's REST API allows remote unauthenticated attackers to trigger denial of service via crafted HTTP requests. The off-by-one error in uri_param_parse function (CWE-122) affects all versions prior to 0.24.11. CVSS 7.7 (High) with network attack vector, low complexity, and no authentication required. Proof-of-concept exploit exists (CVSS E:P), though no CISA KEV listing indicates limited observed exploitation. Vendor patch available in version 0.24.11 with upstream fix committed (GitHub 69a97b3).
RemediationAI
Upgrade NanoMQ MQTT Broker to version 0.24.11 or later, which contains the vendor-released patch addressing the off-by-one heap overflow (commit 69a97b3b39cc218f044f1c8896f4d3d8757bb394 available at https://github.com/nanomq/nanomq/commit/69a97b3b39cc218f044f1c8896f4d3d8757bb394). For systems unable to immediately upgrade, implement network-level access controls to restrict REST API exposure: bind the REST API to localhost/management networks only, deploy reverse proxy with request filtering to block malformed query parameters, or disable the REST API entirely if not operationally required (trade-off: loss of HTTP-based management/monitoring capabilities). Apply rate limiting and connection throttling on REST API endpoints to mitigate denial-of-service impact if exploitation occurs. Monitor NanoMQ process crashes and HTTP 5xx errors as potential indicators of exploitation attempts. Full remediation details in GitHub advisory GHSA-6w96-9qw7-m599.
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
NanoMQ is a lightweight MQTT broker designed for edge computing environments, providing messaging infrastructure with REST API endpoints. The vulnerability resides in the uri_param_parse function responsible for parsing HTTP query parameters in the REST API component. The root cause is an off-by-one error (CWE-122: Heap-based Buffer Overflow) during memory allocation for query parameter keys and values. When processing HTTP requests, the parser allocates a buffer but fails to account for the null terminator byte, allowing a single null byte write beyond the allocated heap memory boundary. This classic off-by-one vulnerability can corrupt adjacent heap metadata or data structures, potentially causing application crashes. The affected CPE (cpe:2.3:a:nanomq:nanomq) confirms impact across the NanoMQ product line, with the REST API being the attack surface exposed to network requests.
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
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
3DescriptionGitHub Advisory
NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Versions prior to 0.24.11 have a remotely triggerable heap buffer overflow in the uri_param_parse function of NanoMQ's REST API. The vulnerability occurs due to an off-by-one error when allocating memory for query parameter keys and values, allowing an attacker to write a null byte beyond the allocated buffer. This can be triggered via a crafted HTTP request. Version 0.24.11 patches the issue.
Executive ViewAI
NanoMQ MQTT Broker versions prior to 0.24.11 contain a remotely exploitable heap buffer overflow in the REST API that allows unauthenticated attackers to cause denial of service. Organizations relying on NanoMQ for IoT or MQTT infrastructure face immediate risk of service disruption without patching, potentially affecting operational technology systems and connected devices that depend on message brokering.
Apply vendor patch (version 0.24.11 or later). If immediate patching is not possible: restrict network access to NanoMQ REST API endpoints using firewall rules or network segmentation to limit exposure to trusted internal networks only; implement rate limiting and request validation at API gateway or proxy layer; monitor for suspicious HTTP requests targeting uri_param_parse endpoints.
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.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
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-23939
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB