CVE-2026-34608

nanomq: Heap-Buffer-Overflow in webhook_inproc.c via cJSON_Parse OOB Read

HIGH
8.2
CVSS Score
Published: April 2, 2026 at 05:52 PM UTC
Updated: July 24, 2026 at 09:20 PM UTC
2 products affected across 2 vendorsNanomqNanomq

Using nanomq by nanomq?

Get instant alerts when new vulnerabilities affect nanomq - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.2
Exploit prediction
EPSS 0.4%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 0.24.10
Affected range stops below 0.24.10, so it looks safe — our inference, not a vendor statement
v < 0.24.10
Affected range stops below 0.24.10, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_CONFIRMExploitMitigationVendor Advisory
Source: cverecord
https://github.com/nanomq/nanomq/security/advisories/GHSA-8p57-jxj9-3qq3
x_refsource_MISCProductRelease Notes
Source: cverecord
https://github.com/nanomq/nanomq/releases/tag/0.24.10

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125CWE-457

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card