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 | CVSS 4.9 reflects moderate severity with network accessibility and low complexity, but the requirement for PR:H (high privilege) significantly constrains real-world attack surface. The vector (AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H) indicates only authenticated high-privilege users can trigger the denial of service-typical MQTT broker scenarios where elevated admin credentials are required to configure webhooks. While information disclosure is mentioned in tags, the CVSS vector (C:N) and patched behavior confirm only availability impact. The vulnerability requires precise payload crafting (power-of-two lengths >=1024) to reliably bypass nng's padding, elevating effective complexity beyond AC:L in practice. Exploitation probability is moderate: insider threat potential is present, but external exploitation depends on attacker obtaining high-privilege credentials. The relatively low CVSS score combined with authentication barriers suggests this is a managed risk in properly secured deployments but warrants prioritization in environments with untrusted admin users or lateral movement risks. |
| Exploit ScenarioDerived | A high-privilege NanoMQ administrator with webhook configuration access crafts a webhook message with a JSON payload exactly 1024 bytes long (or another power-of-two >=1024), intentionally omitting a null terminator. When the message is delivered to the broker's intra-process webhook handler, cJSON_Parse() reads beyond the allocated buffer boundary, accessing adjacent heap memory (possibly message metadata or other NanoMQ internal structures). This triggers a memory access violation, crashing the broker and causing denial of service. The attacker could automate this attack through repeated webhook triggers if they retain admin access to the broker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 02, 2026
Out-of-bounds read in NanoMQ MQTT Broker webhook processing allows remote attackers with high privileges to trigger denial of service by sending malformed JSON payloads. Prior to version 0.24.10, the hook_work_cb() function in webhook_inproc.c passes unsanitized binary message buffers directly to cJSON_Parse(), which reads past buffer boundaries when payloads lack null terminators. The vulnerability is reliably exploitable when JSON payload length is a power-of-two >=1024 bytes, bypassing nng's allocation padding protection. No public exploit code or active exploitation has been identified.
RemediationAI
Upgrade NanoMQ to version 0.24.10 or later, which includes a patched version of webhook_inproc.c that properly null-terminates message bodies before passing them to cJSON_Parse(). The fix is confirmed via GitHub commit 9499a4b2c47998a6aadb69238c18b9e6771b1691 and the official release tag at https://github.com/nanomq/nanomq/releases/tag/0.24.10. For users unable to upgrade immediately, restrict webhook configuration capabilities to trusted administrator accounts only, and avoid configuring webhooks with JSON payloads matching power-of-two sizes >=1024 bytes. Monitor broker logs for unexpected crashes or memory access errors that may indicate exploitation attempts.
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 uses the nng (nanomsg-next-generation) messaging library for MQTT brokering. The vulnerability exists in the webhook module's intra-process communication handler, which receives binary messages via nng_msg and directly extracts the body using nng_msg_body(). This raw binary pointer is passed to cJSON_Parse() without ensuring null termination. While nng allocates extra padding (32 zero bytes) for non-power-of-two allocations smaller than 1024 bytes, this protection fails for power-of-two-sized payloads >=1024 bytes, which receive no padding. The cJSON library reads memory sequentially until encountering a null byte, causing it to access heap or stack memory adjacent to the message buffer. The root cause is a failure to enforce null termination between untrusted binary data and JSON parsing (CWE-125: Out-of-bounds Read).
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:N/UI:N/S:U/C:L/I:N/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. Prior to version 0.24.10, in NanoMQ's webhook_inproc.c, the hook_work_cb() function processes nng messages by parsing the message body with cJSON_Parse(body). The body is obtained from nng_msg_body(msg), which is a binary buffer without a guaranteed null terminator. This leads to an out-of-bounds read (OOB read) as cJSON_Parse reads until it finds a \0, potentially accessing memory beyond the allocated buffer (e.g., nng_msg metadata or adjacent heap/stack). The issue is often masked by nng's allocation padding (extra 32 bytes of zeros for non-power-of-two sizes <1024 or non-aligned). The overflow is reliably triggered when the JSON payload length is a power-of-two >=1024 (no padding added). This issue has been patched in version 0.24.10.
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-18464
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB