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 package | Versions | Reported by |
|---|---|---|
| ollama ollama/ollama | from unspecified up to latest | CVE List |
| github.com/ollama/ollama (Go) | up to 0.3.14, all versions | GitHub Advisory Database, Go Vulnerability Database |
| ollama ollama | up to 0.3.14 | NVD |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
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
| https://huntr.com/bounties/a9951bca-9bd8-49b2-b143-4cd4219f9fa0 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-0317 | advisory | |
| https://github.com/ollama/ollama | package | |
| https://github.com/advisories/GHSA-9gcr-28rp-cc24 | advisory | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-0317 changed 2025-03-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9gcr-28rp-cc24 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3559 changed 2026-06-30 | CC-BY-4.0 |
| NVD | CVE-2025-0317 changed 2026-06-17 | Public domain |