CVE-2026-47275: NanoMQ - Denial of Service
- Cve: CVE-2026-47275
- Name: NanoMQ - Denial of Service
- 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.
- Impact: A malicious MQTT broker can remotely crash NanoMQ clients causing denial of service and potential infinite crash loops.
- Remediation: Update to a version later than 0.24.11 or the latest available version.
- Vulnerability type: null_pointer_dereference
- Vulnerability impact: denial_of_service
- Requirements: Attacker must be a malicious MQTT broker able to send crafted CONNECT packets
- Labels source: projectdiscovery
- Severity: low
- Cvss score: 2.6
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
- Epss score: 0.00273
- Epss percentile: 0.1978
- Assignee: [email protected]
- Published at: 2026-07-20T17:17:10Z
- Age in days: 127
- Modified at: 2026-07-23T16:04:11Z
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-47275
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-476 | NULL Pointer Dereference |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/nanomq/nanomq/security/advisories/GHSA-52qr-3v49-wmx6 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| emqx:nanomq | <= 0.24.11 | no | cna_alias_text | /v1/products/emqx/nanomq |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nanomq/nanomq | security_advisory | yes | /v1/repositories/nanomq/nanomq |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts