Intel

AIKIDO-2026-572127

nanomq.nanomq is vulnerable to Denial of Service (DoS)

CVE-2026-61633Published Aug 21, 2026
August 21, 2026

20

CVE Score

Low

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

NanoMQ's MQTT codec decodes UNSUBSCRIBE packets without validating the result of the internal read_uint16() call that counts topics. When a malformed packet supplies insufficient data, the topic counter stays at zero while the buffer offset never advances, so the decode loop never terminates. A malicious MQTT broker can send a crafted UNSUBSCRIBE packet to a connecting NanoMQ client and drive it into unbounded CPU use and memory allocation. The fix adds a status and bounds check so the decoder advances or aborts instead of looping forever.

How do I fix this?

Upgrade the nanomq.nanomq and/or nanomq.NanoNNG library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your NanoMQ instance connects as an MQTT client to an untrusted broker.

Package

nanomq.nanomq

Versions

0.0.1 - 0.24.13

Fixed in 0.24.14

Background info

nanomq.nanomq is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.24.13.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea