{"id":"CVE-2026-33298","aliases":["CVE-2026-33298"],"related":[],"kind":"vulnerability","state":"published","title":"llama.cpp has a Heap Buffer Overflow via Integer Overflow in GGUF Tensor Parsing","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"llama.cpp es una inferencia de varios modelos LLM en C/C++. Antes de b7824, una vulnerabilidad de desbordamiento de entero en la función `ggml_nbytes` permite a un atacante eludir la validación de memoria al crear un archivo GGUF con dimensiones de tensor específicas. Esto hace que `ggml_nbytes` devuelva un tamaño significativamente menor al requerido (por ejemplo, 4MB en lugar de Exabytes), lo que lleva a un desbordamiento de búfer basado en montículo cuando la aplicación procesa posteriormente el tensor. Esta vulnerabilidad permite una posible ejecución remota de código (RCE) a través de corrupción de memoria. b7824 contiene una corrección.","source":"nvd"}],"published":"2026-03-24T00:01:40.989Z","modified":"2026-06-17T10:37:16.580Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-122","CWE-190"],"affected":[{"ranges":[{"version":"< b7824","status":"affected"}],"vendor":"ggml-org","product":"llama.cpp","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"b7824"}],"vendor":"ggml","product":"llama.cpp","cpe":"cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-96jg-mvhq-q7q7","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ggml-org/llama.cpp/releases/tag/b7824","tags":["release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-03-24T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-33298","url":"https://www.cve.org/CVERecord?id=CVE-2026-33298","licence":"CVE Terms of Use","modified":"2026-03-25T03:55:51.679Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-33298","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-33298","licence":"Public domain","modified":"2026-06-17T10:37:16.580Z"}],"updatedAt":"2026-11-25T22:59:16.521Z","epss":{"score":0.00551,"percentile":0.47494,"date":"2026-12-01T12:00:22.000Z"}}