7.5High
CVE-2026-52132
Description
llama.cpp through commit 97f06e9, when started with the --reranking flag, allows remote attackers to cause a denial of service (std::bad_alloc and HTTP 500) via a negative top_n value in a POST request to /rerank.
Weakness (CWE):
CWE-674
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
References and patches
- https://github.com/ggml-org/llama.cpp Product
- https://blog.ph4nt0m.xyz/ko/cves/cve-2026-52132/ Third Party Advisory
CPE matches (NVD) (1)
cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*≤ 0.4.0