(0Day) Ollama downloadBlob Improper Validation of Array Index Denial-of-Service Vulnerability
The downloadBlob function in Ollama fails to validate user-supplied data properly, allowing an out-of-bounds array access. An unauthenticated remote attacker could use this to cause a denial-of-service condition on the affected installation.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to create a denial-of-service condition on affected installations of Ollama. Authentication is not required to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
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 downloadBlob function trusts a user-supplied value as an array index without checking it against the array's bounds.
Impact
An unauthenticated remote attacker could create a denial-of-service condition on affected installations; the advisory offers no mitigation beyond restricting interaction with the product.
What the attacker needed
Network access to the Ollama service; no authentication needed
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.
Ollama has a function that handles downloaded data and reads past the end of an allocated array because it does not properly validate incoming data. That can cause a denial-of-service, so anyone who can reach it over the network could do this without logging in.
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.