Nanomq · Nanomq · CVE-2026-34608
**Name of the Vulnerable Software and Affected Versions**
NanoMQ versions prior to 0.24.10
**Description**
In the `webhook inproc.c` file, the `hook work cb()` function processes nng messages by parsing the message body using `cJSON Parse(body)`. Because the body is retrieved via `nng msg body(msg)` as a binary buffer without a guaranteed null terminator, an out-of-bounds read (OOB read) occurs. This happens because `cJSON Parse` continues reading memory until it encounters a null terminator, potentially accessing memory beyond the allocated buffer, such as nng msg metadata or adjacent heap/stack memory. This issue is reliably triggered when the JSON payload length is a power-of-two greater than or equal to 1024, as no allocation padding is added in those cases.
**Recommendations**
Update to version 0.24.10.