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

EcosystemPackageFixed inAdvisory
Gogithub.com/ollama/ollamano fix listedGHSA-9gcr-28rp-cc24
Gogithub.com/ollama/ollamano fix listedGO-2025-3559

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