CVE-2026-52132: Llama.cpp vulnerability

Published Sep 1, 2026
·
Updated

llama.cpp through commit 97f06e9, when started with the --reranking flag, allows remote attackers to cause a denial of service (std::badalloc and HTTP 500) via a negative topn value in a POST request to /rerank.

Affected Software

1 affected component
llama.cpp<=97f06e9

Event History

Sep 1, 2026
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

Which deployments are exposed?

Only llama.cpp instances started with the --reranking flag are described as affected. The affected request path is the /rerank endpoint.

2

What does an attacker need to send to trigger the issue?

A remote attacker needs to submit a POST request to /rerank with a negative top_n value. The described result is a denial of service rather than code execution or data exposure.

3

How can operators recognize an attempted or successful trigger?

The reported failure indicators are a std::bad_alloc condition and an HTTP 500 response from the affected request.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203