Description
A flaw has been found in ggml-org llama.cpp e15efe0. This vulnerability affects the function transform of the file common/json-schema-to-grammar.cpp of the component JSON-Schema-to-GBNF Conversion. This manipulation causes uncontrolled recursion. The attack may be initiated 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 flaw in the transform function of json-schema-to-grammar.cpp in ggml‑org llama.cpp causes uncontrolled recursion when processing certain JSON‑Schema inputs. The recursion can exhaust stack space and memory, leading to a denial‑of‑service condition for the vulnerable process. Because the flaw can be triggered by input supplied over the network, the attacker may launch it remotely. The pull request to fix this issue awaits acceptance.

Affected Systems

Any installation of ggml‑org llama.cpp that incorporates the transform functionality, particularly the e15efe0 commit referenced in the advisory, is impacted. Exact version ranges are not provided, so all current builds that include the faulty code should be considered at risk.

Risk and Exploitability

The CVSS score of 6.9 classifies the issue as moderate severity. The EPSS score is < 1 %, indicating a very low but non‑zero likelihood of exploitation, and the vulnerability is not listed in the CISA KEV catalog. The description indicates that the flaw can be exploited remotely by providing a specially crafted JSON‑Schema input, but no active exploit has been documented, suggesting a moderate real‑world risk at present.

Generated by OpenCVE AI on August 2, 2026 at 11:55 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Await and deploy the vendor‑provided fix from pull request 25308 once it is merged into the main branch of llama.cpp.
  • Implement size limits or thorough validation on JSON‑Schema data before it is processed by the transform function to prevent excessive allocation of memory.
  • Configure system resource limits or monitor memory consumption for llama.cpp processes, and take corrective action if abnormal usage is detected.

Generated by OpenCVE AI on August 2, 2026 at 11:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 29 Jul 2026 05:45:00 +0000

Type Values Removed Values Added
Description A flaw has been found in ggml-org llama.cpp e15efe0. This vulnerability affects the function transform of the file common/json-schema-to-grammar.cpp of the component JSON-Schema-to-GBNF Conversion. This manipulation causes allocation of resources. The attack may be initiated remotely. The pull request to fix this issue awaits acceptance. A flaw has been found in ggml-org llama.cpp e15efe0. This vulnerability affects the function transform of the file common/json-schema-to-grammar.cpp of the component JSON-Schema-to-GBNF Conversion. This manipulation causes uncontrolled recursion. The attack may be initiated remotely. The pull request to fix this issue awaits acceptance.
Title ggml-org llama.cpp JSON-Schema-to-GBNF Conversion json-schema-to-grammar.cpp transform allocation of resources ggml-org llama.cpp JSON-Schema-to-GBNF Conversion json-schema-to-grammar.cpp transform recursion
Weaknesses CWE-400
CWE-770
CWE-404
CWE-674

Tue, 28 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1050
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 27 Jul 2026 23: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 15:45:00 +0000

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

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

Type Values Removed Values Added
Description A flaw has been found in ggml-org llama.cpp e15efe0. This vulnerability affects the function transform of the file common/json-schema-to-grammar.cpp of the component JSON-Schema-to-GBNF Conversion. This manipulation causes allocation of resources. The attack may be initiated remotely. The pull request to fix this issue awaits acceptance.
Title ggml-org llama.cpp JSON-Schema-to-GBNF Conversion json-schema-to-grammar.cpp transform allocation of resources
First Time appeared Ggml-org
Ggml-org llama.cpp
Weaknesses CWE-400
CWE-770
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 Llama.cpp
Ggml-org Llama.cpp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-07-29T04:43:05.523Z

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

Link: CVE-2026-17501

cve-icon Vulnrichment

Updated: 2026-07-27T17:05:37.008Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-07-29T06:16:56.907

Link: CVE-2026-17501

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-27T00:30:11Z

Links: CVE-2026-17501 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T12:00:03Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-404

    Improper Resource Shutdown or Release

  • CWE-674

    Uncontrolled Recursion