CVE-2026-65315
JSON

8.7high

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

Severity
8.7high CVSS:4.0 by VulnCheck
Exploit likelihood
0.57% (higher than 48% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
Ollama Ollamaup to f0078aeCVE List

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
VulnCheck7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-789

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Ollama (HEAD f0078ae) contiene una vulnerabilidad de asignación de memoria no controlada en el analizador de metadatos GGUF que permite a atacantes remotos bloquear el servidor al proporcionar un archivo GGUF manipulado con campos de longitud y recuento controlados por el atacante en longitudes de cadena, recuentos de dimensiones de tensor y recuentos de matrices de metadatos que se utilizan como tamaños de asignación sin validación contra el tamaño de archivo restante. Los atacantes pueden cargar un archivo GGUF manipulado de menos de 1KB a través de los puntos finales de la API de carga de blobs y creación o extracción de modelos para desencadenar errores fatales de memoria insuficiente (out-of-memory) irrecuperables del tiempo de ejecución de Go o panics de makeslice que eluden el middleware de recuperación y bloquean todo el proceso del servidor.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-65315 changed 2026-11-08CVE Terms of Use
NVDCVE-2026-65315 changed 2026-10-24Public domain