CVE-2026-33298
March 24, 2026
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.
Affected Packages
https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824https://github.com/ggml-org/llama.cpp.git (GITHUB):
Affected version(s) >=b1046 <b7824Fix Suggestion:
Update to version b7824Related ResourcesĀ (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.5
Attack Vector
LOCAL
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.8
Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
EPSS
Base Score:
0.04