{"id":"CVE-2026-33298","published":"2026-03-24T00:01:40Z","modified":"2026-03-25T03:55:51Z","title":"llama.cpp has a Heap Buffer Overflow via Integer Overflow in GGUF Tensor Parsing","vendor":"ggml-org","product":"llama.cpp","tier":"tail","description":{"text":"llama.cpp is an inference of several LLM models in C/C++. Prior to b7824, an integer overflow vulnerability in the `ggml_nbytes` function allows an attacker to bypass memory validation by crafting a GGUF file with specific tensor dimensions. This causes `ggml_nbytes` to return a significantly smaller size than required (e.g., 4MB instead of Exabytes), leading to a heap-based buffer overflow when the application subsequently processes the tensor. This vulnerability allows potential Remote Code Execution (RCE) via memory corruption. b7824 contains a fix.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0044,"percentile":0.30155,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-96jg-mvhq-q7q7","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b7824","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":6.03},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"ggml-org","affectedVersions":[{"vendor":"ggml-org","product":"llama.cpp","versions":["< b7824"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-24T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-14668","exploited":false,"provenance":"source"}}