{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "source": "REFERENCES"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "16bdb38921e7bbeab887cf229c2eb145889dfa88"
            }
          ],
          "repo": "https://github.com/nanomq/nanomq",
          "type": "GIT"
        },
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.24.14"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "fa8d859bb39841e46cfc6cce280d242bd782ad3d"
            }
          ],
          "repo": "https://github.com/nanomq/nanonng",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m7mp-rr3v-hmhr"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-835"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61633.json"
  },
  "details": "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.",
  "id": "CVE-2026-61633",
  "modified": "2026-09-20T11:30:57.176416249Z",
  "published": "2026-09-18T16:18:57.029Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/nanomq/nanomq/releases/tag/0.24.14"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/61xxx/CVE-2026-61633.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nanomq/nanomq/security/advisories/GHSA-m7mp-rr3v-hmhr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-61633"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nanomq/NanoNNG/commit/fa8d859bb39841e46cfc6cce280d242bd782ad3d"
    },
    {
      "type": "FIX",
      "url": "https://github.com/nanomq/NanoNNG/pull/1518"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "NanoMQ: Infinite Loop in UNSUBSCRIBE Decoder Leading to Remote DoS"
}