CVE-2026-65315CWE-789

Ollama Remote Denial of Service via Attacker-Controlled Allocation in GGUF Metadata Parser

High · published July 21, 2026

CVSS v4.0
8.7
EPSS
1%
Percentile
56.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00807 · 56.4th percentile
Weakness
CWE-789 · Memory Allocation with Excessive Size Value
Published
2026-07-21T21:18Z
EPSS history
Timeline
  • 21 JUL 21:18Z
    Ollama Remote Denial of Service via Attacker-Controlled Allocation in GGUF Metadata Parser
    cvelistv5