CVE-2026-33298: ggml-org llama.cpp · Heap-based Buffer Overflow
Affects ggml-org llama.cppSource CVE Database V5
Not known to be exploited · CVSS 7.8 High : upgrade to b7824 soon.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in b7824
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Mar 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade ggml-org llama.cpp to b7824.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| ggml-orgllama.cpp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Organizations should immediately update llama.cpp to version b7824 or later, which contains the patch fixing the integer overflow and buffer overflow issues. Until updates can be applied, implement strict validation and sanitization of GGUF files before processing, including verifying tensor dimensions and file integrity to prevent malformed inputs. Restrict access to systems running llama.cpp to trusted users and environments to reduce the risk of malicious file processing. Employ runtime protections such as memory safety tools (e.g., ASLR, DEP) and sandboxing to limit the impact of potential exploitation. Monitor logs and system behavior for anomalies indicative of exploitation attempts. Educate users about the risks of processing untrusted model files and enforce policies to avoid loading models from unverified sources. Regularly review and apply security advisories from ggml-org and related communities.
Description
CVE-2026-33298 is a high-severity heap-based buffer overflow vulnerability in the ggml-org llama.cpp library, affecting versions prior to b7824. The flaw arises from an integer overflow in the ggml_nbytes function when processing crafted GGUF files with malicious tensor dimensions, causing memory size miscalculations. This leads to a heap buffer overflow during tensor processing, enabling potential remote code execution via memory corruption. Exploitation requires local access and user interaction but no privileges. The vulnerability impacts confidentiality, integrity, and availability of affected systems. A fix is included in version b7824. No known exploits are currently reported in the wild. Organizations using llama.cpp for LLM inference should urgently update to the patched version to mitigate risk.