CVE-2026-52132
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.
Published:Sep 1, 2026
Last Modified:Sep 4, 2026
EPS:Sep 1, 2026
EPSS Score:0.00332
CVSS Score:7.5
Affected Products
Vendor
Product
Action
Vendor
Ggml
Product
Llama.cpp
Ggml
Llama.cpp
Vendor
Ggml-org
Product
Llama.cpp
Ggml-org
Llama.cpp
Exploits
No exploit reference
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
