Skip to content
Heist/ feed
Back to feed
Medium

llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info

Type: advisorySources: Official CVE List

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.

Products
llama.cpp
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-71439
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 07:38 UTC · Revision 1

Source evidence

llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info

core-cve · Original source

Published 27 Oct 2026, 00:33 UTC

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.

cve:CVE-2025-71439

llama.cpp

Fixed versions: Not specified

Complete source record
{
  "id": "ef80ae2e2f70dcec43e85043c23003ab4f581410ff9554c96ffed46ef68cda61",
  "url": "https://www.cve.org/CVERecord?id=CVE-2025-71439",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info",
    "summary": "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.",
    "evidence": "cve:CVE-2025-71439",
    "products": [
      {
        "name": {
          "value": "llama.cpp",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-71439",
      "aliases": [
        "CVE-2025-71439"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 6.8,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "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",
            "userInteraction": "PASSIVE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "HIGH",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "NONE"
          }
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 5.5,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
            "integrityImpact": "NONE",
            "userInteraction": "REQUIRED",
            "attackComplexity": "LOW",
            "availabilityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "NONE"
          }
        }
      ],
      "affected": [
        {
          "vendor": "ggml-org",
          "product": "llama.cpp",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "lessThan": "b5649",
              "versionType": "custom"
            }
          ],
          "packageURL": "pkg:github/ggml-org/llama.cpp",
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-27T00:33:57.956Z",
      "provider": "cve",
      "references": [
        "https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-g4cc-763q-h9h6",
        "https://github.com/ggml-org/llama.cpp/pull/14145",
        "https://github.com/ggml-org/llama.cpp/commit/c33fe8b8c4427202706b1434e9fc8ab5752c9cac",
        "https://github.com/ggml-org/llama.cpp/blob/b5648/src/llama-vocab.cpp#L2771",
        "https://github.com/ggml-org/llama.cpp/releases/tag/b5649",
        "https://www.vulncheck.com/advisories/llama-cpp-before-b5649-heap-out-of-bounds-read-via-llama-vocab-impl-print-info"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-27T00:33:57.956Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-71439",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 373005,
  "published_at": "2026-10-27T00:33:57.956+00:00"
}