CVE-2026-52130: llama.cpp b5693 and before is vulnerable to Uncontrolled Recursion in common/json-schema-to-grammar.cpp, resul
CVE-2026-52130 is a high-severity flaw (CVSS 7.5) affecting llama.cpp. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
llama.cpp b5693 and before is vulnerable to Uncontrolled Recursion in common/json-schema-to-grammar.cpp, resulting in a denial of service.
Why this priority
- High severity
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.5% (top 58%) |
| CISA exploited list | No |
| Weakness | CWE-674 |
| Published | 2026-09-01 |
| Last modified | 2026-09-04 |
Last updated 2026-09-04 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-52130?
llama.cpp: upgrade to newer than b5693. Exact commands for each OS are on this page.
Is CVE-2026-52130 being exploited?
CVE-2026-52130 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-52130 affect?
CVE-2026-52130 affects llama.cpp. Severity is high (CVSS 7.5). llama.cpp b5693 and before is vulnerable to Uncontrolled Recursion in common/json-schema-to-grammar.cpp, resulting in a denial of service.
How urgent is CVE-2026-52130?
Priority 42/100. High severity; Remotely exploitable, no login, no user action
Software pages
OpenAI and LLM tools vulnerabilities
Related CVEs
- CVE-2026-34159 CRITICAL 9.8 UPGRADE llama.cpp is an inference of several LLM models in C/C++
- CVE-2026-70640 HIGH 7.0 UPGRADE llama.cpp builds b1886 through b7445 contain a race condition use-after-free vulnerability in the LLaMA-Androi
- CVE-2026-70638 HIGH 7.8 UPGRADE llama.cpp builds b1886 through b7445 contain an integer overflow vulnerability in the LLaMA-Android JNI wrappe
- CVE-2026-70639 MEDIUM 5.5 UPGRADE llama.cpp builds b1886 through b7445 contain a null pointer dereference vulnerability in the LLaMA-Android JNI
- CVE-2026-43629 HIGH 8.1 UPGRADE llama.cpp builds b4882 through b9058 contain a heap buffer overflow vulnerability in the KV cache state restor