{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "b5649"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "b5649",
                "range": [
                  {
                    "fixed": "c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
            }
          ],
          "repo": "https://github.com/ggml-org/llama.cpp",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g4cc-763q-h9h6"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71439.json"
  },
  "details": "llama.cpp before b5649 contains a heap out-of-bounds read vulnerability in llama_vocab::impl::print_info() that allows attackers to crash model loading via oversized special token IDs. Attackers can supply a crafted GGUF model with a short tokenizer.ggml.tokens array, causing llama-cli or llama-server to read past id_to_token and crash.",
  "id": "CVE-2025-71439",
  "modified": "2026-11-11T10:30:40.845946522Z",
  "published": "2026-10-27T00:33:57.956Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71439.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b5649"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-71439"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/14145"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info"
}