Skip to content
OpenAdvisories
High · 7.5 CVE-2025-1975 EUVD-2025-15424GHSA-wrh5-cmwx-q2qrGO-2025-3695PYSEC-2025-145

Improper Validation of Array Index in ollama/ollama

Published May 16, 2025 · Updated May 16, 2025 · Assigned by @huntr_ai

Description

A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by customizing the manifest content and spoofing a service. This is due to improper validation of array index access when downloading a model via the /api/pull endpoint, which can lead to a server 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.20250523T151856-1.1 openSUSE-SU-2025:15159-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling k8sgpt 0.4.28-r0 —
Wolfi rolling mods 1.8.1-r14 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama <= 0.5.11 — GHSA-wrh5-cmwx-q2qr
Go github.com/ollama/ollama all versions — GO-2025-3695

Advisories 1

References