CVE-2024-8063
Divide by Zero in ollama/ollama
Reported by @huntr_ai · Published March 20, 2025
ollama is fixed in 0.3.3 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ollama | PyPI | 0.3.3 |
| github.com/ollama/ollama | Go Modules | 0.3.3 |
| mods | Wolfi | 1.8.1-r14 |
| mods | Chainguard | 1.8.1-r14 |
| ollama/ollama | ollama | latest |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| ollama | ollama/ollama | unspecified |
| wolfi | k8sgpt | * |
| chainguard | k8sgpt | * |
| chainguard | ollama-fips | * |
| ollama | ollama/ollama | * |
| github.com | ollama/ollama | 0 |
| wolfi | mods | 0 |
| chainguard | mods | 0 |
Timeline
- Mar 20, 2025 CVE Published
- Mar 20, 2025 EPSS Score (30 in total, the first dated here)
- Mar 27, 2025 Coalition ESS Score (8 in total, the first dated here)
- Dec 27, 2025 CVE Updated
- Mar 10, 2026 Security Advisory (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-8063
vulnetix vdb fixes CVE-2024-8063
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-8063/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart