Browse / Unsafe Model Loading and Supply Chain / CVE-2024-8063
Ollama Divide by Zero Vulnerability
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- github.com/ollama/ollama (Go)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.6% chance of exploitation in 30 days
How it works, in short
A crafted GGUF model file with a malformed block count causes a division by zero when imported, crashing the server. (Our summary, written by a model. The source text is below.)
Details
A divide by zero vulnerability exists in ollama/ollama version v0.3.3. The vulnerability occurs when importing GGUF models with a crafted type for block_count in the Modelfile. This can lead to a denial of service (DoS) condition when the server processes the model, causing it to crash.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-8063
- https://github.com/ollama/ollama/issues/8020
- https://github.com/ollama/ollama
- https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml
- https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9
Source: GitHub Advisory Database, used under CC BY 4.0.