CVE-2025-0317
JSON

7.5high

Divide By Zero in ollama/ollama

Severity
7.5high CVSS:3.0 by @huntr_ai
Exploit likelihood
14.4% (higher than 96% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-9gcr-28rp-cc24GO-2025-3559

Description

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model file on the Ollama server. This can lead to a division by zero error in the ggufPadding function, causing the server to crash and resulting in a Denial of Service (DoS) attack.

Affected

Product or packageVersionsReported by
ollama ollama/ollamafrom unspecified up to latestCVE List
github.com/ollama/ollama (Go)up to 0.3.14, all versionsGitHub Advisory Database, Go Vulnerability Database
ollama ollamaup to 0.3.14NVD

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-369

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

What each source says

CVE List

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model file on the Ollama server. This can lead to a division by zero error in the ggufPadding function, causing the server to crash and resulting in a Denial of Service (DoS) attack.

Go Vulnerability Database

Ollama Divide By Zero vulnerability in github.com/ollama/ollama

NVD (es)

Una vulnerabilidad en ollama/ollama versiones anteriores a la 0.3.14 permite a un usuario malintencionado cargar y crear un archivo de modelo GGUF personalizado en el servidor Ollama. Esto puede provocar un error de división por cero en la función ggufPadding, lo que provoca el bloqueo del servidor y un ataque de denegación de servicio (DoS).

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-0317 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-9gcr-28rp-cc24 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3559 changed 2026-06-30CC-BY-4.0
NVDCVE-2025-0317 changed 2026-06-17Public domain