GitHub Advisory Database
GHSA-2xf2-gjm6-g2c6
Ollama Divide by Zero Vulnerability
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Go | github.com/ollama/ollama | All versions up to and including 0.3.3 |