Integer Overflow Vulnerability in llama.cpp by ggml-org
CVE-2026-27940
7.8HIGH
What is CVE-2026-27940?
The implementation of gguf_init_from_file_impl() in gguf.cpp within llama.cpp is susceptible to an integer overflow, which can result in an undersized heap allocation. This flaw enables an attacker to write more than 528 bytes of data, controlled by them, beyond the allocated buffer. This vulnerability is reminiscent of a previous issue documented in the same file but remains unaddressed in certain aspects despite prior resolutions. The flaw has been rectified in version b8146.
Affected Version(s)
llama.cpp < b8146
