Ollama Server Vulnerable to Denial of Service (DoS) Attack
The Ollama server did not properly validate array index access when downloading a model through the /api/pull endpoint. A malicious user could customise the manifest content and spoof a service to crash the server, causing a denial of service.
github.com/ollama/ollama
Originally disclosed on huntr
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.
From the GitHub Advisory Database (GHSA-wrh5-cmwx-q2qr, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server accessed array elements from a user-supplied manifest without validating that the indices were within bounds.
Impact
A malicious user could crash the Ollama server, causing a denial of service.
What the attacker needed
Access to the /api/pull endpoint; ability to supply a custom manifest
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A denial of service (DoS) attack makes a service stop working for everyone. Here, the server trusted a model manifest (a file describing a model) without checking that the array positions inside it were valid, so a crafted manifest could crash the server.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.