CVE-2026-52132

Denial of Service via Negative top_n in llama.cpp Reranking Endpoint

Published Sep 1, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Ggml
Ggml llama.cpp
CPEs cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml
Ggml llama.cpp
Type Values Removed Values Added
Title Denial of Service via Negative top_n in llama.cpp Reranking Endpoint
Type Values Removed Values Added
Title Remote Denial of Service via Negative top_n Value in llama.cpp Reranking Endpoint
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-674
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Remote Denial of Service via Negative top_n Value in llama.cpp Reranking Endpoint
Weaknesses CWE-20
Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp
Type Values Removed Values Added
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.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 2, 2026, 1:47 PM
Reserved
Jun 8, 2026, 12:00 AM
Status
Analyzed
Published
Sep 1, 2026, 6:17 PM
Modified
Sep 4, 2026, 8:15 PM