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.
Published: 2026-07-27
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Mon, 27 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 27 Jul 2026 01:00:00 +0000

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


Subscriptions

Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-27T18:03:26.332Z

Reserved: 2026-07-26T17:33:41.700Z

Link: CVE-2026-17500

cve-icon Vulnrichment

Updated: 2026-07-27T18:03:20.859Z

cve-icon NVD

Status : Deferred

Published: 2026-07-27T01:16:26.380

Modified: 2026-07-27T20:25:13.817

Link: CVE-2026-17500

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T18:15:04Z

Weaknesses
  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-476

    NULL Pointer Dereference