CVE-2026-34608 Details
Description
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.
A heap-buffer-overflow vulnerability has been identified in NanoMQ MQTT Broker versions prior to 0.24.10. The issue arises in the webhook_inproc.c file, specifically within the hook_work_cb() function. Here, the function processes nng messages by parsing the message body with cJSON_Parse. However, the body is sourced from nng_msg_body(msg), which is a binary buffer lacking a guaranteed null terminator. This flaw can lead to an out-of-bounds read, as cJSON_Parse continues reading until it encounters a null character, potentially accessing memory beyond the allocated buffer, such as nng_msg metadata or adjacent heap or stack memory. The vulnerability is often obscured by nng's allocation padding, which adds extra zeros for certain buffer sizes. The out-of-bounds read can be reliably triggered when the JSON payload length is a power of two and 1024 or greater, as no padding is applied in these cases.
Users can upgrade to NanoMQ version 0.24.10 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nanomq/nanomq/commit/9499a4b2c47998a6aadb69238c18b9e6771b1691 | [email protected] | Patch |
| https://github.com/nanomq/nanomq/releases/tag/0.24.10 | [email protected] | ProductRelease Notes |
| https://github.com/nanomq/nanomq/security/advisories/GHSA-8p57-jxj9-3qq3 | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
| CWE-457 | Use of Uninitialized Variable | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| emqx nanomq | < 0.24.10 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 10, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | New CVE Received | [email protected] |