Skip to content
OpenAdvisories
High · 7.5 CVE-2025-0317 EUVD-2025-6832GHSA-9gcr-28rp-cc24GO-2025-3559

Divide By Zero in ollama/ollama

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

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 products

VendorProductAffectedFixed
ollama ollama/ollama unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250331T171002-1.1 openSUSE-SU-2025:14955-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling mods 1.8.1-r14 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama <= 0.3.14 — GHSA-9gcr-28rp-cc24
Go github.com/ollama/ollama all versions — GO-2025-3559

Advisories 1

References