← Vulnerability feed

Vulnerability record · CVE-2025-0317 · published 20 March 2025

CVE-2025-0317: Ollama divide by zero vulnerability

Ollama · Ollama

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.

7.5 CVSS 3.1 High EPSS 14% · top 3.5% CWE-369 · Divide by zero
7.5CVSS 3.1 base score
14%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
1References, 1 tagged exploit
17 Jun 2026Last modified by NVD

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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-0317 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-63389Ollama missing authentication for critical function vulnerabilityA critical authentication bypass vulnerability exists in Ollama platform's API endpoints in versions prior to and including v0.12.3. The platform exp…EPSS 0.71%8.8CVE-2026-7482Ollama out-of-bounds read vulnerabilityOllama before 0.17.1 contains a heap out-of-bounds read vulnerability in the GGUF model loader. The /api/create endpoint accepts an attacker-supplied…EPSS 0.71%8.8CVE-2024-37032Ollama digest validation path traversal enables remote code executionOllama before 0.1.34 fails to validate the format of the model digest (expected sha256 with 64 hex digits) when resolving the model path, so malforme…EPSS 90%analysed8.7CVE-2025-15514Ollama vulnerabilityOllama 0.11.5-rc0 through current version 0.13.5 contain a null pointer dereference vulnerability in the multi-modal model image processing functiona…EPSS 0.78%8.2CVE-2024-39720Ollama out-of-bounds read vulnerabilityAn issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starti…EPSS 2.5%7.7CVE-2026-42249Ollama path traversal vulnerabilityOllama for Windows contains a Remote Code Execution vulnerability in its update mechanism due to improper handling of attacker‑controlled HTTP respon…EPSS 0.52%7.7CVE-2026-42248Ollama download of code without integrity check vulnerabilityOllama for Windows does not perform integrity or authenticity verification of downloaded update executables. Unlike other platforms, the Windows impl…EPSS 0.33%7.5CVE-2026-15685Ollama vulnerabilityOllama downloadBlob Improper Validation of Array Index Denial-of-Service Vulnerability. This vulnerability allows remote attackers to create a denial…EPSS 0.72%

Source: NIST National Vulnerability Database (record CVE-2025-0317), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.