Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
NanoMQ Incorrectly Accepts a Malformed SUBSCRIBE and Can Be Driven into an ASAN-Detectable Out-of-Bounds Read
Vulnerability Description
NanoMQ contains a protocol-semantics flaw in its MQTT v5 `SUBSCRIBE` handling: if a subscription entry is missing the final 1-byte `Subscription Options` field, the broker may still accept the malformed packet and install the subscription into internal broker state. Under a specific packet-length construction, the same parser flaw also causes a 1-byte out-of-bounds read that crosses the real heap allocation boundary and is detected by ASAN as a `heap-buffer-overflow`. If the consumed byte happens to look acceptable, NanoMQ may continue and append the malformed subscription entry into its internal `subinfol` state. In that case, a `SUBSCRIBE` packet that should be rejected by MQTT rules is instead treated as a successful subscription. Whether ASAN reports the bug does not depend on MQTT's logical `remain` boundary; it depends on whether the read crosses the real heap allocation boundary of the underlying message buffer. In other words, these are not two unrelated issues. They are two manifestations of the same parsing defect: by default, it appears as a semantic vulnerability, and under suitable input conditions, it also becomes a verifiable out-of-bounds read vulnerability.
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Vulnerability Type
跨界内存读
Vulnerability Title
NanoMQ 缓冲区错误漏洞
Vulnerability Description
nanomq nanomq是nanomq的消息队列中间件。 NanoMQ 0.24.14及之前版本存在缓冲区错误漏洞,该漏洞源于MQTT v5 `SUBSCRIBE`处理过程中存在协议语义缺陷,如果订阅条目缺少最终的1字节`Subscription Options`字段,代理可能仍会接受格式错误的数据包并将订阅安装到内部状态中,在特定数据包长度构造下,同一解析器缺陷还导致1字节越界读取。
CVSS Information
N/A
Vulnerability Type
N/A