Skip to content
Heist/ feed
Back to feed
High

MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer()

Type: advisorySources: OSV

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer() accepts 5-byte varints without bounds checks; reliably triggers OOB read / crash when built with ASan. This affects 0.24.6 and earlier.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-21888
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:06 UTC · Revision 1

Source evidence

MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer()

core-osv · Original source

Published 11 Mar 2026, 15:22 UTC

NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer() accepts 5-byte varints without bounds checks; reliably triggers OOB read / crash when built with ASan. This affects 0.24.6 and earlier.

osv:CVE-2026-21888
Complete source record
{
  "id": "b7074ee8fadffb98b3e97ad1d5febf94cbca6b75c14905d83b2fc46c5a3cbe52",
  "url": "https://osv.dev/vulnerability/CVE-2026-21888",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer()",
    "summary": "NanoMQ MQTT Broker (NanoMQ) is an all-around Edge Messaging Platform. MQTT v5 Variable Byte Integer parsing out-of-bounds: get_var_integer() accepts 5-byte varints without bounds checks; reliably triggers OOB read / crash when built with ASan. This affects 0.24.6 and earlier.",
    "evidence": "osv:CVE-2026-21888",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-21888",
      "aliases": [
        "CVE-2026-21888",
        "GHSA-cggc-6m7w-j7x5"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/nanomq/nanomq",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "dc3a3136cd82d5c005b8cd26a65fe53beaaf0eb9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.24.6"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "cpe": "cpe:2.3:a:emqx:nanomq:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.24.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "0.24.6",
            "0.24.5",
            "0.24.4",
            "0.24.3-5",
            "0.24.3",
            "0.24.2",
            "0.24.1",
            "0.24.0",
            "0.23.10",
            "0.23.9",
            "0.23.8",
            "0.23.7-11",
            "0.23.7",
            "0.23.6",
            "0.23.5",
            "0.23.4",
            "0.23.3",
            "0.23.2",
            "0.23.1",
            "0.23.0",
            "0.22.10",
            "0.22.8",
            "0.22.7",
            "0.22.6",
            "0.22.2",
            "0.22.3",
            "0.22.1",
            "0.22.0",
            "0.21.10",
            "0.21.9",
            "0.21.8",
            "0.21.7",
            "0.21.6",
            "0.21.5",
            "0.21.2",
            "0.21.1",
            "0.21",
            "0.20.8",
            "0.20.6",
            "0.20.5",
            "0.20.0",
            "0.19.5",
            "0.19.1",
            "0.19.0",
            "0.18.2",
            "0.18.1",
            "0.17.8",
            "0.17.5",
            "0.17.2",
            "0.16.5",
            "0.16.3",
            "0.16.2",
            "0.16.0",
            "0.15.5",
            "0.15.3",
            "0.15.2",
            "0.15.1",
            "0.15.0",
            "0.14.8",
            "0.14.5",
            "0.12.1",
            "0.14.1",
            "0.14.0",
            "0.13.8",
            "0.13.6",
            "0.13.0",
            "0.12.5",
            "0.12.2",
            "0.12.0",
            "0.11.82",
            "0.11.8",
            "0.11.5",
            "0.11.3",
            "0.11.2",
            "0.11.0",
            "0.10.8",
            "0.10.5",
            "0.10.1",
            "0.9.7",
            "0.9.5",
            "0.9.2",
            "0.9.0",
            "0.8.6log",
            "0.8.5",
            "0.8.3",
            "0.8.0",
            "0.7.9",
            "0.7.8",
            "0.7.5",
            "0.7.5rc",
            "0.7.4rc",
            "0.7.4",
            "0.7.3",
            "0.7.2",
            "0.6.8",
            "0.7.0",
            "0.6.7rc",
            "0.6.4",
            "0.6.3",
            "0.6.2",
            "0.6.0",
            "0.5.9",
            "0.5.8",
            "0.5.5",
            "0.5.2",
            "0.5.0",
            "0.4.8",
            "0.4.5",
            "0.4.3",
            "0.4.2",
            "0.4.1",
            "0.4.0",
            "0.3.8",
            "0.3.5",
            "0.3.4",
            "0.3.3",
            "0.3.2",
            "0.3.0",
            "0.2.5",
            "0.2.2",
            "0.2.1",
            "0.2.0",
            "0.1.0",
            "0.0.3",
            "0.0.2",
            "0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-21888.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.376071951Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21888.json",
        "https://github.com/nanomq/nanomq/security/advisories/GHSA-cggc-6m7w-j7x5",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-21888",
        "https://github.com/nanomq/nanomq/issues/2192"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-125"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21888.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-21888",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497132,
  "published_at": "2026-03-11T15:22:32.463+00:00"
}