PT-2026-29862 · Nanomq · Nanomq
CVSS v3.1
8.2
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
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.
Exploit
Fix
Out of bounds Read
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Nanomq