<Vulnerability name="CVE-2026-17501">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-07-27T00:30:11</PublicDate>
    <Bugzilla id="2507392" url="https://bugzilla.redhat.com/show_bug.cgi?id=2507392" xml:lang="en:us">
llama.cpp: llama.cpp: Denial of Service due to resource allocation manipulation in JSON-Schema-to-GBNF Conversion
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>5.3</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-1050</CWE>
    <Details xml:lang="en:us" source="Mitre">
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.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in llama.cpp. A remote attacker could exploit a vulnerability in the JSON-Schema-to-GBNF Conversion component, specifically within the `transform` function. This flaw allows for the manipulation of resource allocation, which can lead to a denial of service (DoS) by exhausting available system resources.
    </Details>
    <Statement xml:lang="en:us">
Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product. This assessment may evolve based on further analysis and discovery. For more information about this vulnerability and the affected packages, refer to the linked references.
    </Statement>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-17501
https://nvd.nist.gov/vuln/detail/CVE-2026-17501
https://github.com/ggml-org/llama.cpp/
https://github.com/ggml-org/llama.cpp/issues/25283
https://github.com/ggml-org/llama.cpp/pull/25308
https://vuldb.com/cve/CVE-2026-17501
https://vuldb.com/submit/798504
https://vuldb.com/vuln/383354
https://vuldb.com/vuln/383354/cti
    </References>
</Vulnerability>