NanoMQ: O(N²) Denial of Service in MQTT v5 Property Parsing
nanomq
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| nanomq nanomq |
| No fix yet |
Original description
NanoMQ is an MQTT broker. Prior to 0.24.14, NanoMQ's MQTT v5 property decoder in nng/src/supplemental/mqtt/mqtt_codec.c uses property_append() to walk the entire linked list for each property added by decode_buf_properties(). A remote unauthenticated client can supply a PUBLISH or SUBSCRIBE packet containing many User Properties, causing O(N²) linked-list insertion and CPU work that makes the broker unresponsive; repeated packets can sustain the denial of service. This issue is fixed in version 0.24.14.
From the CVE record · GitHub_M