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.
Published: 2026-09-01
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 10:45:00 +0000

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'}


Wed, 02 Sep 2026 01:30:00 +0000

Type Values Removed Values Added
Title Remote Denial of Service via Negative top_n Value in llama.cpp Reranking Endpoint
Weaknesses CWE-20

Wed, 02 Sep 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Ggml-org
Ggml-org llama.cpp
Vendors & Products Ggml-org
Ggml-org llama.cpp

Tue, 01 Sep 2026 22:00:00 +0000

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

Subscriptions

Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-02T13:47:15.740Z

Reserved: 2026-06-08T00:00:00.000Z

Link: CVE-2026-52132

cve-icon Vulnrichment

Updated: 2026-09-02T13:45:42.662Z

cve-icon NVD

Status : Received

Published: 2026-09-01T18:17:43.823

Modified: 2026-09-02T14:17:12.103

Link: CVE-2026-52132

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T01:15:05Z

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-674

    Uncontrolled Recursion