CVE-2026-52132 Denial of service in n/a
Remote attackers can cause denial of service in llama.cpp via negative top_n values when the reranking flag is enabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-52132?
CVE-2026-52132 is a high-severity denial of service vulnerability in n/a, published on 1 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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-674
Which versions are affected by CVE-2026-52132?
It affects 1 product.
Linux distribution packages (1)
llamacpp openSUSE:Tumbleweed | All versions | 0.4.0-1.1 |
Products include Ggml Llama.cpp.
How do I fix CVE-2026-52132?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-52132 being exploited?
There is no known exploitation of CVE-2026-52132 in the wild and no public exploit code.
Other vulnerabilities in n/a
- CVE-2024-42479 llama.cpp allows write-what-where in rpc_server::set_tensor
- CVE-2026-34159 llama.cpp: Unauthenticated RCE via GRAPH_COMPUTE buffer=0 bypass in llama.cpp RPC backend
- CVE-2026-43629 llama.cpp b4882–b9058 Buffer Overflow in KV Cache State Restore
- CVE-2026-43631 llama.cpp b7492–b9060 Use-After-Free RCE via llama-server
- CVE-2026-43632 llama.cpp b7492–b9060 Use-After-Free in Tokenization Endpoints
Sources
Also known as DEBIAN-CVE-2026-52132, GHSA-rqxm-jx33-wrqr, UBUNTU-CVE-2026-52132, openSUSE-SU-2026:11720-1.