nanomq.nanomq is vulnerable to Out-of-bounds Read
70
High Risk
NanoMQ's SUBSCRIBE parser in nmq_subinfo_decode() reuses the len_of_varint variable for both the outer Properties Length and the inner SUBSCRIPTION_IDENTIFIER varints without resetting it, so get_var_integer() starts reading at the wrong offset. Combined with missing bounds checking, a crafted Properties field full of repeated subscription-identifier bytes drives the parser to read past the end of the message buffer. An unauthenticated MQTT v5 client can crash the broker, leading to out-of-bounds read. The fix resets the length variable and adds bounds validation during property decoding.
You are affected if you are using a version that falls within the vulnerable range and your NanoMQ broker accepts MQTT v5 client connections.
nanomq.nanomq is vulnerable to Out-of-bounds Read in versions 0.0.1 - 0.24.13.
Upgrade the nanomq.nanomq and/or nanomq.NanoNNG library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant