CVE-2026-65315 Ollama Remote Denial of Service via Attacker-Controlled Allocation in GGUF Metadata Parser
Remote attackers can crash the Ollama server by uploading a crafted GGUF file that triggers uncontrolled memory allocation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-65315?
CVE-2026-65315 is a high-severity denial of service vulnerability in Ollama, published on 21 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Ollama (HEAD f0078ae) contains an uncontrolled memory allocation vulnerability in the GGUF metadata parser that allows remote attackers to crash the server by supplying a crafted GGUF file with attacker-controlled length and count fields in string lengths, tensor dimension counts, and metadata array counts that are used as allocation sizes without validation against remaining file size. Attackers can upload a sub-1KB crafted GGUF file via the blob upload and model create or pull API endpoints to trigger unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass recovery middleware and crash the entire server process.
Weakness: CWE-789
Which versions are affected by CVE-2026-65315?
How do I fix CVE-2026-65315?
No fix has been published for CVE-2026-65315 yet. Limit exposure of the affected software until one is available.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2026-65315 being exploited?
There is no known exploitation of CVE-2026-65315 in the wild and no public exploit code.
Sources
Also known as GHSA-9hhj-2jwx-r87p.