high7.5
CVE-2024-8063
Ollama Divide by Zero Vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/ollama/ollama | <= 0.3.3 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Ollama | Ollama | Version 0.3.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9
- https://github.com/advisories/GHSA-2xf2-gjm6-g2c6
- https://nvd.nist.gov/vuln/detail/CVE-2024-8063
- https://github.com/ollama/ollama/issues/8020
- https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml