CVE-2026-47275 Details
Description
In nanomq versions 0.24.11 and earlier, a NULL pointer dereference in `nni_mqttv5_msg_decode_connect()` allows a malicious MQTT broker to crash any connecting NanoMQ MQTTv5 client (including bridge mode) with a single packet, causing remote denial of service via SIGSEGV. In `nni_mqttv5_msg_decode_connect()` (`mqtt_codec.c:1863`), the code iterates over CONNECT properties using variable `prop` when it should use `will_prop`. When a CONNECT packet has no connect-level properties (`prop == NULL`) but has will properties (`will_prop != NULL`), dereferencing `prop->next` causes SIGSEGV at address `0x38` (NULL + `offsetof(property, next)`). This affects both `nanomq_cli` and **NanoMQ bridge mode** (Core component), as both use the same `mqtt_client.c` receive path. This can lead to remote DoS if a malicious MQTT broker can crash the client process with a single 35-byte packet and persistent DoS if auto-reconnect causes infinite crash loop.
A NULL pointer dereference vulnerability has been identified in NanoMQ versions through 0.24.11. The issue arises in the MQTTv5 message decoding process, specifically within the 'nni_mqttv5_msg_decode_connect()' function. When a CONNECT packet lacks connect-level properties but contains will properties, the code erroneously dereferences a NULL pointer. This flaw allows a malicious MQTT broker to crash any connecting NanoMQ MQTTv5 client, including those in bridge mode, with a single packet, causing a remote denial-of-service condition. The vulnerability is triggered by sending a crafted MQTTv5 CONNECT packet that exploits the improper handling of properties, leading to a segmentation fault and crashing the client process. This issue affects both the 'nanomq_cli' and 'NanoMQ bridge mode' components, as they share the same message reception path.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 20, 2026CISA-ADP
Assessed Jul 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nanomq/nanomq/security/advisories/GHSA-52qr-3v49-wmx6 | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/nanomq/nanomq/security/advisories/GHSA-52qr-3v49-wmx6 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nanomq | <= 0.24.11 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 20, 2026 | CVE Modified | CISA-ADP |
| Jul 20, 2026 | New CVE Received | [email protected] |
Volerion