Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-35217— NanoMQ Incorrectly Accepts a Malformed SUBSCRIBE and Can Be Driven into an ASAN-Detectable Out-of-Bounds Read

CVSS 6.5 · Medium EPSS 0.19% · P9

Affected Version Matrix 1

VendorProductVersion RangeStatus
nanomqnanomq<= 0.24.14affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-35217

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

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
Source: CVE Program / CVE List V5
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5
Vulnerability Title
NanoMQ 缓冲区错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
nanomq nanomq是nanomq的消息队列中间件。 NanoMQ 0.24.14及之前版本存在缓冲区错误漏洞,该漏洞源于MQTT v5 `SUBSCRIBE`处理过程中存在协议语义缺陷,如果订阅条目缺少最终的1字节`Subscription Options`字段,代理可能仍会接受格式错误的数据包并将订阅安装到内部状态中,在特定数据包长度构造下,同一解析器缺陷还导致1字节越界读取。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
nanomqnanomq <= 0.24.14 -

II. Public POCs for CVE-2026-35217

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-35217

登录查看更多情报信息。

Vendor Advisories for CVE-2026-35217 (1)

Same Patch Batch · nanomq · 2026-07-20 · 3 CVEs total

CVE-2026-472766.5 MEDIUMNULL Pointer Dereference in REST API properties_parse via Malformed user_properties
CVE-2026-472752.6 LOWnanomq NULL Pointer Dereference in MQTTv5 Client CONNECT Decoder Leading to Remote DoS

IV. Related Vulnerabilities

V. Comments for CVE-2026-35217

No comments yet


Leave a comment