| Component | llama.cpp |
| Severity | high (CVSS 8.8) |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Published (NVD) | 2024-02-26 |
| Last modified | 2026-06-17 |
| Affected versions | < 2024-01-09 NVD bounds the range with a date (2024-01-09), not a release number: a version cannot be checked against it, the scanner says so |
| Fixed in | see the vendor advisory |
| Weakness | CWE-190CWE-787 |
| CISA KEV | not listed |
Versions, checked against NVD
These are NVD's ranges. Neither a GitHub-reviewed advisory nor the CVE record gives versions to check them against yet.
NVD description
A heap-based buffer overflow vulnerability exists in the GGUF library header.n_tensors functionality of llama.cpp Commit 18c2e17. A specially crafted .gguf file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
What to do
- NVD gives the date of the fix (
2024-01-09) instead of a release: check in the vendor advisory below which release of llama.cpp carries it, and move to that release or a later one. - 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