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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-03-20 · Modified: 2025-03-20
- Aliases: PYSEC-2025-144, GHSA-2xf2-gjm6-g2c6, GO-2025-3689, CGA-65xq-68jj-46mw, CGA-fgpq-3mrq-9prv, CGA-q9mf-4qxf-q2jp, CGA-xc36-g45m-768r, CGA-45jm-rg3h-x26m, CGA-v5fv-xc43-vp33
- Record: https://cvemate.com/vulnerability/CVE-2024-8063 · JSON: https://cvemate.com/vulnerability/CVE-2024-8063/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.637%, percentile 51.999%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard k8sgpt (Chainguard): All versions (No fix recorded)
- chainguard mods (Chainguard): \< 1.8.1-r14
- chainguard ollama-fips (Chainguard): All versions (No fix recorded)
- wolfi k8sgpt (Wolfi): All versions (No fix recorded)
- wolfi mods (Wolfi): \< 1.8.1-r14
- github.com/ollama ollama (Go): ≤ 0.3.3 \| All versions (No fix recorded)
- ollama ollama: 0.3.3
- ollama ollama/ollama: ≥ unspecified, ≤ latest
- PyPI ollama (PyPI): ≤ 0.3.3

## References

- <https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8063.json>
- <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://github.com/advisories/GHSA-2xf2-gjm6-g2c6>

---

Data as of 2026-12-05T18:39:26.440Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
