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

CVE-2025-1975Improper Validation of Array Index 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 0.5% (higher than 44% of all known vulnerabilities).

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.5%top 55.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/ollama/ollamano fix listedGHSA-wrh5-cmwx-q2qr
Gogithub.com/ollama/ollamano fix listedGO-2025-3695
PyPIollamano fix listedPYSEC-2025-145

Affected products (as reported)

VendorProductVersions
ollama ollama/ollama unspecified – through latest

Weakness: CWE-129 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References