INCIDENT MAP

Browse / Unsafe Model Loading and Supply Chain / CVE-2024-8063

Ollama Divide by Zero Vulnerability

CVE-2024-8063 ยท 2025-03-20 high

Class
Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
Technique
Denial of service
Affected
github.com/ollama/ollama (Go)
CVSS
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.6% chance of exploitation in 30 days

How it works, in short

A crafted GGUF model file with a malformed block count causes a division by zero when imported, crashing the server. (Our summary, written by a model. The source text is below.)

Details

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.

References

Source: GitHub Advisory Database, used under CC BY 4.0.