Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai
CVE-2025-0317Divide 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 14.5% (higher than 97% of all known vulnerabilities).
Severity (CVSS 3.0)7.5High
Exploit odds (30 days)14.5%top 3.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model file on the Ollama server. This can lead to a division by zero error in the ggufPadding function, causing the server to crash and resulting in a Denial of Service (DoS) attack.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/ollama/ollama | no fix listed | GHSA-9gcr-28rp-cc24 |
| Go | github.com/ollama/ollama | no fix listed | GO-2025-3559 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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