CVE-2026-17500

ggml-org llama.cpp json-schema-to-grammar.cpp _visit_pattern null pointer dereference

Published Jul 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A null pointer dereference (CWE-476) is present in the _visit_pattern function of the json-schema-to-grammar.cpp component of llama.cpp. The flaw can be triggered remotely and may cause the library to crash or hang, resulting in a denial of service to users who load or parse JSON schemas. The vulnerability also involves improper resource handling (CWE-404) which contributes to the crash risk. There is no evidence that arbitrary code execution can be achieved; the risk remains limited to service disruption.

Affected Systems

The vulnerability affects the ggml-org llama.cpp project and applies to the code base between the commits d006858 and e15efe0. No specific release numbers or version ranges are listed, so any build derived from these commits is potentially impacted.

Risk and Exploitability

The CVSS score of 6.9 categorizes the flaw as moderate. EPSS score is < 1%, indicating a very low exploitation probability, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is remote, implying that an external actor could supply a crafted JSON schema to trigger the flaw, leading to service interruption. Until a patch is released, the main risk is downtime rather than privilege escalation or data compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the accepted patch from PR #25308 once it is merged into the main branch of ggml-org/llama.cpp.
  • Restrict or disable the JSON schema parsing functionality that calls _visit_pattern in untrusted or externally exposed contexts to reduce the attack surface.
  • Continuously monitor the ggml-org/llama.cpp repository and vulnerability advisories for updates and new releases that address this flaw.

Generated by OpenCVE AI on August 3, 2026 at 18:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title ggml-org llama.cpp json-schema-to-grammar.cpp _visit_pattern null pointer dereference
First Time appeared Ggml-org
Ggml-org llama.cpp
Weaknesses CWE-404
CWE-476
CPEs cpe:2.3:a:ggml-org:llama.cpp:*:*:*:*:*:*:*:*
Vendors & Products Ggml-org
Ggml-org llama.cpp
References
Metrics cvssV2_0

{'score': 5, 'vector': 'AV:N/AC:L/Au:N/C:N/I:N/A:P/E:ND/RL:ND/RC:UR'}

cvssV3_0

{'score': 5.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:X/RC:R'}

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:X/RL:X/RC:R'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X'}

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-476

    NULL Pointer Dereference

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Jul 27, 2026, 6:03 PM
Reserved
Jul 26, 2026, 5:33 PM
Status
Deferred
Published
Jul 27, 2026, 1:16 AM
Modified
Oct 24, 2026, 1:10 PM