{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "b5899"
                  },
                  {
                    "fixed": "b10261"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "b10261",
                "range": [
                  {
                    "fixed": "cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "68e37a61a7b24863f67541db65b4f6195962a268"
            },
            {
              "fixed": "cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
            }
          ],
          "repo": "https://github.com/ggml-org/llama.cpp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-129"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116816.json"
  },
  "details": "llama.cpp b5899 before b10261 contains a heap out-of-bounds write vulnerability in llm_tokenizer_plamo2::build that allows attackers to corrupt heap memory via crafted GGUF models. Attackers can supply BYTE-typed token text like \u003c0x-1\u003e whose negative parsed value writes token ids before the bytes_ buffer during model loading, causing crashes or potential code execution.",
  "id": "CVE-2026-116816",
  "modified": "2026-11-11T10:30:51.749201392Z",
  "published": "2026-10-27T00:33:58.581Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116816.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b10261"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116816"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/llama-cpp-b5899-before-b10261-heap-out-of-bounds-write-via-plamo2-tokenizer"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/commit/cf06ad7dfe79e7bf2934150d4fefe1ce8db05490"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/25969"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/26511"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ggml-org/llama.cpp/blob/b10259/src/llama-vocab.cpp#L1376-L1377"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "llama.cpp b5899 before b10261 Heap Out-of-Bounds Write via plamo2 Tokenizer"
}