{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.24.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "dc3a3136cd82d5c005b8cd26a65fe53beaaf0eb9"
            }
          ],
          "repo": "https://github.com/emqx/nanomq",
          "type": "GIT"
        }
      ]
    },
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "= 0.24.6"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "dc3a3136cd82d5c005b8cd26a65fe53beaaf0eb9"
            }
          ],
          "repo": "https://github.com/nanomq/nanomq",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-v57q-w88m-424r"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22040.json"
  },
  "details": "NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. In version 0.24.6, by generating a combined traffic pattern of high-frequency publishes and rapid reconnect/kick-out using the same ClientID and massive subscribe/unsubscribe jitter, it is possible to reliably trigger heap memory corruption in the Broker process, causing it to exit immediately with SIGABRT due to free(): invalid pointer. As of time of publication, no known patched versions are available.",
  "id": "CVE-2026-22040",
  "modified": "2026-04-01T23:10:30.299339977Z",
  "published": "2026-03-04T21:55:11.238Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22040.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nanomq/nanomq/security/advisories/GHSA-v57q-w88m-424r"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-22040"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "NanoMQ 0.24.6 Use-After-Free Leading to Heap Corruption and Broker Crash"
}