在版本 b5899 至 b10261 之前的 llama.cpp 中, 函数存在堆越界写入漏洞。攻击者可通过构造恶意的 GGUF 模型文件,利用该漏洞破坏堆内存。具体而言,攻击者可提供类型为 BYTE 的 token 文本(例如 ),其解析后的负值会在模型加载过程中将 token ID 写入 缓冲区之前的位置,从而导致程序崩溃或潜在的代码执行。
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC| CVE-2024-58400 | 8.2 HIGH | llama.cpp before b3701 Out-of-Bounds Read in llama_decode via Token IDs |
| CVE-2026-116829 | 6.6 MEDIUM | llama.cpp b10398 before b11301 Integer Overflow in gguf_init_from_reader |
| CVE-2026-116840 | 6.1 MEDIUM | llama.cpp b5854 before b11275 Integer Overflow in gguf_init_from_reader |
| CVE-2024-58399 | 6.1 MEDIUM | llama.cpp before b2731 Out-of-Bounds Read via GGUF Tensor Offsets |
| CVE-2025-71439 | 5.5 MEDIUM | llama.cpp before b5649 Heap Out-of-Bounds Read via llama_vocab::impl::print_info |