CVE-2024-8063
HIGH 7.5CVSS 3.1Ollama Divide by Zero Vulnerability
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.
- Published
- 20 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-369
- Also known as
- GHSA-2xf2-gjm6-g2c6GO-2025-3689PYSEC-2025-144
- Sources
- NVDJSONOSV GHSA-2xf2-gjm6-g2c6JSONOSV GO-2025-3689JSONOSV PYSEC-2025-144JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ollama | ollamacpe:2.3:a:ollama:ollama:0.3.3:*:*:*:*:*:*:* |
= 0.3.3 | |
| OSV | Go | github.com/ollama/ollama | <= 0.3.3 | |
| OSV | Go | github.com/ollama/ollama | all versions | |
| OSV | PyPI | ollama | <= 0.3.3 |
References
- https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2024-8063 · ADVISORY
- https://github.com/ollama/ollama/issues/8020 · WEB, REPORT
- https://github.com/ollama/ollama · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml · WEB
- https://github.com/advisories/GHSA-2xf2-gjm6-g2c6 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 May 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Mar 2025)