Skip to content
Heist/ feed
Back to feed
Medium

llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader

Type: advisorySources: Official CVE List

llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.

Products
llama.cpp
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-116840
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:58 UTC · Revision 1

Source evidence

llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader

core-cve · Original source

Published 27 Oct 2026, 00:33 UTC

llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.

cve:CVE-2026-116840

llama.cpp

Fixed versions: Not specified

Complete source record
{
  "id": "7eda4ba9a21a3d3fe70dec1d570237ef4a68ab6f130dd3380ad5ded73dbc7da0",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-116840",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader",
    "summary": "llama.cpp b5854 before b11275 contains an integer overflow vulnerability in gguf_init_from_reader that bypasses the CVE-2025-53630 size check when padding near-SIZE_MAX tensor sizes. Attackers can supply a crafted GGUF file whose tensor size pads to zero, causing an undersized data blob and out-of-bounds reads by consumers.",
    "evidence": "cve:CVE-2026-116840",
    "products": [
      {
        "name": {
          "value": "llama.cpp",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-116840",
      "aliases": [
        "CVE-2026-116840"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 6.9,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/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": "LOW"
          }
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 6.1,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H",
            "integrityImpact": "NONE",
            "userInteraction": "REQUIRED",
            "attackComplexity": "LOW",
            "availabilityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "LOW"
          }
        }
      ],
      "affected": [
        {
          "vendor": "ggml-org",
          "product": "llama.cpp",
          "versions": [
            {
              "status": "affected",
              "version": "b5854",
              "lessThan": "b11275",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "0.1.0",
              "lessThan": "0.6.0",
              "versionType": "semver"
            }
          ],
          "packageURL": "pkg:github/ggml-org/llama.cpp",
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-27T14:14:10.931Z",
      "provider": "cve",
      "references": [
        "https://github.com/ggml-org/llama.cpp/issues/26978",
        "https://github.com/ggml-org/llama.cpp/pull/26979",
        "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44",
        "https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795",
        "https://github.com/ggml-org/llama.cpp/releases/tag/b11275",
        "https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader"
      ],
      "provider_metadata": {
        "adp": [
          {
            "title": "CISA ADP Vulnrichment",
            "metrics": [
              {
                "other": {
                  "type": "ssvc",
                  "content": {
                    "id": "CVE-2026-116840",
                    "role": "CISA Coordinator",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "version": "2.0.3",
                    "timestamp": "2026-10-27T13:42:18.688377Z"
                  }
                }
              }
            ],
            "providerMetadata": {
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP",
              "dateUpdated": "2026-10-27T14:14:10.931Z"
            }
          }
        ],
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-27T00:33:59.834Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-116840",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 392666,
  "published_at": "2026-10-27T00:33:59.834+00:00"
}