CVE-2026-17500
Received Received - Intake

Null Pointer Dereference in llama.cpp

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

Publication date: 2026-07-27

Last updated on: 2026-07-27

Assigner: VulDB

Description

A vulnerability was detected in ggml-org llama.cpp d006858/e15efe0. This affects the function _visit_pattern of the file common/json-schema-to-grammar.cpp. The manipulation results in null pointer dereference. The attack can be launched remotely. The pull request to fix this issue awaits acceptance.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-27
Last Modified
2026-07-27
Generated
2026-07-27
AI Q&A
2026-07-27
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
ggml-org llama.cpp *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-404 The product does not release or incorrectly releases a resource before it is made available for re-use.
CWE-476 The product dereferences a pointer that it expects to be valid but is NULL.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a null pointer dereference flaw in the ggml-org llama.cpp library. It occurs in the _visit_pattern function of common/json-schema-to-grammar.cpp when processing JSON-Schema patterns with unsupported regex constructs like lookarounds. This causes the application to crash due to attempting to access a null pointer.

Detection Guidance

To detect this vulnerability, monitor for crashes or null pointer dereference errors in applications using llama.cpp, particularly when processing JSON schemas with regex patterns. Check logs for segmentation faults or application aborts during JSON schema parsing.

Impact Analysis

The vulnerability can be exploited remotely by providing a specially crafted JSON schema with unsupported regex patterns. This could lead to denial-of-service conditions where the application crashes, potentially disrupting services relying on llama.cpp for processing JSON schemas.

Compliance Impact

The vulnerability involves a null pointer dereference in JSON-Schema regex handling, which could lead to crashes when processing crafted inputs. This may impact compliance by causing service disruptions or data processing failures, potentially violating availability requirements in standards like GDPR or HIPAA. However, specific compliance impacts depend on system configuration and deployment context.

Mitigation Strategies

Immediately update llama.cpp to the latest version once a fix is merged. As a temporary measure, validate all incoming JSON schemas to reject unsupported regex constructs like lookarounds before processing. Add null checks in grammar construction code.

Chat Assistant

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

EPSS Chart