nanomq.nanomq is vulnerable to Denial of Service (DoS)
20
CVE Score
Low
Denial of Service (DoS)
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.
Upgrade the nanomq.nanomq and/or nanomq.NanoNNG library to the patch version.
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.
0.0.1 - 0.24.13
Fixed in 0.24.14nanomq.nanomq is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 0.24.13.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.