CVE-2026-61633: NanoMQ: Infinite Loop in UNSUBSCRIBE Decoder Leading to Remote DoS

Published Sep 18, 2026
·
Updated

NanoMQ is an MQTT broker. Prior to 0.24.14, the NanoMQ client function nnimqttmsgdecodeunsubscribe() in nng/src/supplemental/mqtt/mqttcodec.c does not handle a failed readuint16() while counting topics in a malformed UNSUBSCRIBE packet. A zero-length topic followed by trailing data can leave buf.curpos unchanged while topiccount continues to increase, allowing a malicious MQTT broker to hang a connecting MQTT 3.1.1 client, consume CPU and memory, and repeatedly deny service when automatic reconnection is enabled. The broker-side nmqunsubinfodecode path is not affected. This issue is fixed in version 0.24.14.

Affected Software

1 affected component
nanomq nanomq<0.24.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade NanoMQ to a version that resolves this vulnerability.

    Fixed in 0.24.14

Event History

Sep 18, 2026
CVE Published
via MITRE·04:18 PM
Data Sourced
via MITRE·04:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

NanoMQ MQTT 3.1.1 clients using versions before 0.24.14 are affected when connecting to a malicious broker. The NanoMQ broker-side nmq_unsubinfo_decode path is not affected.

2

What does an attacker need to exploit it?

An attacker needs to operate or control an MQTT broker that a vulnerable client connects to, then send a malformed UNSUBSCRIBE packet containing a zero-length topic followed by trailing data. Exploitation also requires user interaction in the form of the client connecting to that broker.

3

What is the practical impact if exploitation succeeds?

The affected client can enter an infinite loop, consuming CPU and memory and becoming unavailable. If automatic reconnection is enabled, the broker can repeatedly trigger the condition and sustain the denial of service.

4

What should be done if an upgrade cannot be applied immediately?

Avoid connecting affected clients to untrusted or malicious MQTT brokers. Disabling automatic reconnection can prevent repeated denial-of-service events, although it does not remove the underlying flaw.

5

How can I determine whether remediation is needed?

Check whether NanoMQ clients that use MQTT 3.1.1 are running a version earlier than 0.24.14 and connect to brokers that may be untrusted. Upgrade affected clients to version 0.24.14.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203