# CVE-2024-8063: Divide by Zero in ollama/ollama

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:56.139Z
- Modified: 2026-09-10T03:50:56.688Z
- Also known as: GHSA-2xf2-gjm6-g2c6, GO-2025-3689, PYSEC-2025-144
- Related: CGA-43f5-wr5m-xcpp
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- ollama ollama/ollama: from unspecified up to latest
- github.com/ollama/ollama (Go): up to 0.3.3; all versions
- ollama ollama: 0.3.3
- ollama (PyPI): up to 0.3.3

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9> (exploit, evidence, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-8063> (advisory)
- <https://github.com/ollama/ollama/issues/8020> (report, web)
- <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)

## Sources

- CVE List: [CVE-2024-8063](https://www.cve.org/CVERecord?id=CVE-2024-8063), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-2xf2-gjm6-g2c6](https://github.com/advisories/GHSA-2xf2-gjm6-g2c6), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3689](https://pkg.go.dev/vuln/GO-2025-3689), CC-BY-4.0, modified 2026-06-27
- NVD: [CVE-2024-8063](https://nvd.nist.gov/vuln/detail/CVE-2024-8063), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-144](https://osv.dev/vulnerability/PYSEC-2025-144), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2024-8063 · Whole record: https://cve.day/CVE-2024-8063.json · Rebuilt by cve.day 2026-11-25T22:58:52.391Z
