Skip to content
OpenAdvisories
High · 7.5 CVE-2024-8063 EUVD-2025-6935GHSA-2xf2-gjm6-g2c6GO-2025-3689PYSEC-2025-144

Divide by Zero in ollama/ollama

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

Description

A divide by zero vulnerability exists in ollama/ollama version v0.3.3. The vulnerability occurs when importing GGUF models with a crafted type for `block_count` in the Modelfile. This can lead to a denial of service (DoS) condition when the server processes the model, causing it to crash.

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.20250515T200012-1.1 openSUSE-SU-2025:15135-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling mods 1.8.1-r14 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama <= 0.3.3 — GHSA-2xf2-gjm6-g2c6
Go github.com/ollama/ollama all versions — GO-2025-3689

Advisories 1

References