High severity · published Mar 20, 2025
CVE-2025-0317
Divide By Zero in ollama/ollama
7.5
CVSS
14.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)14.5% · higher than 97% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OL
ollama/ollama · ollama
through latest · source: vendor
OL
Ollama · Ollama
through 0.3.14 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-0317
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-0317
Exploit
https://huntr.com/bounties/a9951bca-9bd8-49b2-b143-4cd4219f9fa0
More from ollama/ollama
7.5
CVE-2025-1975
Improper Validation of Array Index in ollama/ollama
7.5
CVE-2024-8063
Divide by Zero in ollama/ollama
7.5
CVE-2025-0312
NULL Pointer Dereference in ollama/ollama
7.5
CVE-2024-12886
Out-Of-Memory (OOM) Vulnerability in ollama/ollama
7.5
CVE-2025-0315
Allocation of Resources Without Limits or Throttling in ollama/ollama
