{"id":"CVE-2026-47275","aliases":["CVE-2026-47275"],"related":[],"kind":"vulnerability","state":"published","title":"nanomq NULL Pointer Dereference in MQTTv5 Client CONNECT Decoder Leading to Remote DoS","summary":"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)`).\n\nThis 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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)`).\n\nThis 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.","source":"cvelist"}],"published":"2026-07-20T16:43:03.704Z","modified":"2026-07-23T16:04:11.740Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.6,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L","score":2.6,"rating":"LOW"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":"<= 0.24.11","status":"affected"}],"vendor":"nanomq","product":"nanomq","source":"cvelist"}],"references":[{"url":"https://github.com/nanomq/nanomq/security/advisories/GHSA-52qr-3v49-wmx6","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-07-20T18:56:22.265Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47275","url":"https://www.cve.org/CVERecord?id=CVE-2026-47275","licence":"CVE Terms of Use","modified":"2026-07-20T18:56:28.995Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47275","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47275","licence":"Public domain","modified":"2026-07-23T16:04:11.740Z"}],"updatedAt":"2026-11-25T22:59:29.253Z","epss":{"score":0.00169,"percentile":0.06499,"date":"2026-12-01T12:00:22.000Z"}}