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.
References
Configurations

Configuration 1 (hide)

cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*

History

04 Sep 2026, 20:15

Type Values Removed Values Added
First Time Ggml llama.cpp
Ggml
CPE cpe:2.3:a:ggml:llama.cpp:*:*:*:*:*:*:*:*
References () https://blog.ph4nt0m.xyz/ko/cves/cve-2026-52132/ - () https://blog.ph4nt0m.xyz/ko/cves/cve-2026-52132/ - Third Party Advisory
References () https://github.com/ggml-org/llama.cpp - () https://github.com/ggml-org/llama.cpp - Product

02 Sep 2026, 14:17

Type Values Removed Values Added
CWE CWE-674
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5

01 Sep 2026, 18:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-09-01 18:17

Updated : 2026-09-04 20:15


NVD link : CVE-2026-52132

Mitre link : CVE-2026-52132

CVE.ORG link : CVE-2026-52132


JSON object : View

Products Affected

ggml

  • llama.cpp
CWE
CWE-674

Uncontrolled Recursion