CVE-2026-52132: Ggml Llama.cpp

High severity, CVSS 7.5. EPSS: 0.6% chance of exploitation in the next 30 days.

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.

Affected products

  • Ggml Llama.cpp: up to and including 0.4.0

Published 2026-09-01. Last modified 2026-09-04.