{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "b5854"
                  },
                  {
                    "fixed": "b11275"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "0.1.0"
                  },
                  {
                    "fixed": "0.6.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "b11275",
                "range": [
                  {
                    "fixed": "a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "26a48ad699d50b6268900062661bd22f3e792579"
            },
            {
              "fixed": "a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
            },
            {
              "introduced": "7c35571e5dd2e577eddaca7e0ffa7cf46a54fcf2"
            },
            {
              "fixed": "d81235049384534c167caea52b85a694f6103d14"
            }
          ],
          "repo": "https://github.com/ggml-org/llama.cpp",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json"
  },
  "details": "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.",
  "id": "CVE-2026-116840",
  "modified": "2026-10-29T02:30:57.354623052Z",
  "published": "2026-10-27T00:33:59.834Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116840.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ggml-org/llama.cpp/releases/tag/b11275"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116840"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/llama-cpp-b5854-before-b11275-integer-overflow-in-gguf-init-from-reader"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ggml-org/llama.cpp/issues/26978"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/commit/a6ea155d3d38b3f6f43d0c0dc29c2d592413ef44"
    },
    {
      "type": "FIX",
      "url": "https://github.com/ggml-org/llama.cpp/pull/26979"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/ggml-org/llama.cpp/blob/v0.5.0/ggml/src/gguf.cpp#L794-L795"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader"
}