| Component | llama.cpp |
| Severity | high (CVSS 8.9) |
| CVSS vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| Published (NVD) | 2025-07-10 |
| Last modified | 2026-06-17 |
| Affected versions | not published yet, see the advisory |
| Fixed in | commit 26a48ad69 (no release number given) |
| Weakness | CWE-122CWE-680 |
| CISA KEV | not listed |
NVD description
llama.cpp is an inference of several LLM models in C/C++. Integer Overflow in the gguf_init_from_file_impl function in ggml/src/gguf.cpp can lead to Heap Out-of-Bounds Read/Write. This vulnerability is fixed in commit 26a48ad699d50b6268900062661bd22f3e792579.
What to do
- The advisory names the fix (commit
26a48ad69) without a release number we can read: follow the vendor advisory below and move llama.cpp to a release that includes it. - Do not expose the component's API or UI to the internet without authentication in front of it.
- Run llama.cpp bound to localhost and reach it over a private network rather than an open port. Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12