# CVE-2026-33298: llama.cpp has a Heap Buffer Overflow via Integer Overflow in GGUF Tensor Parsing

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-24T00:01:40.989Z
- Modified: 2026-06-17T10:37:16.580Z
- Weaknesses: CWE-122, CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ggml-org llama.cpp: < b7824
- ggml llama.cpp: before b7824

## References

- <https://github.com/ggml-org/llama.cpp/security/advisories/GHSA-96jg-mvhq-q7q7> (exploit, vendor-advisory)
- <https://github.com/ggml-org/llama.cpp/releases/tag/b7824> (release-notes)

## Sources

- CVE List: [CVE-2026-33298](https://www.cve.org/CVERecord?id=CVE-2026-33298), CVE Terms of Use, modified 2026-03-25
- NVD: [CVE-2026-33298](https://nvd.nist.gov/vuln/detail/CVE-2026-33298), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33298 · Whole record: https://cve.day/CVE-2026-33298.json · Rebuilt by cve.day 2026-11-25T22:59:16.521Z
