Skip to content
HighVulnerabilityLLM-specific

CVE-2026-52132: llama.cpp denial of service via negative top_n in /rerank endpoint

Identifier
CVE-2026-52132
Published
Record updated
View JSON

Summary

llama.cpp through commit 97f06e9, when started with the --reranking flag, lets remote attackers cause a denial of service. Sending a POST request to /rerank with a negative top_n value triggers std::bad_alloc and an HTTP 500 response.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.