CVE-2026-52131
Analyzed Analyzed - Analysis Complete

Reachable Assertion in llama.cpp via gguf_reader

Vulnerability report for CVE-2026-52131, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-01

Last updated on: 2026-09-04

Assigner: MITRE

Description

llama.cpp b5693 and before has a Reachable Assertion via the gguf_reader::read function.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-01
Last Modified
2026-09-04
Generated
2026-09-22
AI Q&A
2026-09-01
EPSS Evaluated
2026-09-20
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ggml llama.cpp to b5693 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-617 The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

llama.cpp versions up to b5693 contain a reachable assertion flaw in the gguf_reader::read function. This means an attacker could trigger an assertion failure by providing malformed input, potentially causing the application to crash or behave unexpectedly.

Detection Guidance

This vulnerability is specific to the json_schema field in the POST /completions endpoint of llama.cpp versions up to b5693. To detect it, send a deeply nested JSON schema (e.g., 7000+ levels) to the endpoint and monitor for crashes or stack exhaustion. Example curl command: curl -X POST http://localhost:8080/completions -H 'Content-Type: application/json' -d '{"json_schema": {"type": "object", "properties": {"nested": {"type": "object", "properties": {"...": {"type": "object", "properties": {}}}}}}}'.

Impact Analysis

This vulnerability could lead to denial-of-service conditions where the affected application crashes. If exploited repeatedly, it may disrupt services relying on llama.cpp for processing.

Compliance Impact

This vulnerability (CVE-2026-52131) is a denial-of-service issue caused by uncontrolled recursion in llama.cpp. While it does not directly expose data, a DoS attack could disrupt services handling sensitive data, potentially violating availability requirements in GDPR (Article 32) and HIPAA (Security Rule). However, no specific compliance impact is detailed in the provided context.

Mitigation Strategies

Update llama.cpp to a version newer than b5693 to address the Reachable Assertion vulnerability in the gguf_reader::read function.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52131. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart