Ollama Server Denial-of-Service Vulnerability via Spoofed Manifest Download

Vulnerability

A denial-of-service vulnerability has been identified in Ollama Server version 0.5.11. This issue allows a malicious user to crash the server by customizing manifest content, spoofing a service, and downloading a model through the /api/pull endpoint. The vulnerability arises from improper validation of array index access, which can lead to a server crash.

Impact

Exploitation of this vulnerability causes the Ollama server to crash, leading to a denial-of-service condition.

Reproduction

To reproduce this vulnerability, first start the Ollama server. Then, set up a malicious server that spoofs a service by customizing the manifest content. This can be done using a simple Go application that responds with a crafted JSON manifest. Once the malicious server is running, send a POST request to the Ollama server's /api/pull endpoint, including the URL of the spoofed manifest. The Ollama server will then crash due to the unchecked array bounds access.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
2.6
impact
2.5
exploitability
9.1
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.