llama.cpp through commit 97f06e9, when started with the --reranking flag, allows remote attackers to cause a denial of service (std::badalloc and HTTP 500) via a negative topn value in a POST request to /rerank.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/52xxx/CVE-2026-52132.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"introduced": "llama.cpp"
}
],
"source": "DESCRIPTION"
}
],
"cna_assigner": "mitre"
}{
"cpe": "cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*",
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "0.4.0"
}
],
"source": "CPE_RANGE"
}