Buffer overflow in llama.cpp - CVE-2025-52566
Published: July 18, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in tokenizer implementation. A remote attacker can trigger memory corruption and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
openEuler
llama.cpp
How to mitigate CVE-2025-52566
llama.cpp - update to 20230815-5