Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

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

High 7.5

In plain English

A high-severity security flaw in ollama/ollama from ollama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities).

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.6%top 49.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ollama/ollamano fix listedGHSA-2xf2-gjm6-g2c6
Gogithub.com/ollama/ollamano fix listedGO-2025-3689
PyPIollamano fix listedPYSEC-2025-144

Affected products (as reported)

VendorProductVersions
ollama ollama/ollama unspecified – through latest

Weakness: CWE-369 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References