# CVE-2026-61633: NanoMQ: Infinite Loop in UNSUBSCRIBE Decoder Leading to Remote DoS

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 2.0
- **CVSS:** 2.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2026-09-18T16:18:57.029Z
- **Modified:** 2026-09-18T18:17:09.433Z

## Who should check

- Anyone running nanomq \< 0.24.14

## Description

NanoMQ is an MQTT broker. Prior to 0.24.14, the NanoMQ client function nni\_mqtt\_msg\_decode\_unsubscribe() in nng/src/supplemental/mqtt/mqtt\_codec.c does not handle a failed read\_uint16() while counting topics in a malformed UNSUBSCRIBE packet. A zero-length topic followed by trailing data can leave buf.curpos unchanged while topic\_count continues to increase, allowing a malicious MQTT broker to hang a connecting MQTT 3.1.1 client, consume CPU and memory, and repeatedly deny service when automatic reconnection is enabled. The broker-side nmq\_unsubinfo\_decode path is not affected. This issue is fixed in version 0.24.14.

## Affected and fixed versions

- nanomq: \< 0.24.14 (cvelist)

## Mitigation

- Upgrade nanomq to 0.24.14 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-61633. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-61633.md
Affected: nanomq < 0.24.14
Fixed in: nanomq 0.24.14

Steps:
1. Search this machine and project for nanomq: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-61633 being exploited?

There is no confirmed exploitation: CVE-2026-61633 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-61633?

Low: CVSS 2.0 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-61633?

nanomq \< 0.24.14.

### Is there a fix for CVE-2026-61633?

Yes. Fixed in nanomq 0.24.14. Upgrade nanomq to 0.24.14 or later.

### How do I check if I'm affected by CVE-2026-61633?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nanomq/nanomq/security/advisories/GHSA-m7mp-rr3v-hmhr>
- patch: <https://github.com/nanomq/NanoNNG/pull/1518>
- patch: <https://github.com/nanomq/NanoNNG/commit/fa8d859bb39841e46cfc6cce280d242bd782ad3d>
- other: <https://github.com/nanomq/nanomq/releases/tag/0.24.14>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-61633>

HTML: <https://flawdb.com/CVE-2026-61633> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-61633>
