Ollama Allocation of Resources Without Limits or Throttling vulnerability
A malicious user can upload a crafted GGUF model file to an Ollama server, causing unlimited memory allocation and a denial of service. The vulnerability affects Ollama versions up to 0.3.14.
github.com/ollama/ollama
Originally disclosed on huntr
A vulnerability in ollama/ollama <=0.3.14 allows a malicious user to create a customized GGUF model file, upload it to the Ollama server, and create it. This can cause the server to allocate unlimited memory, leading to a Denial of Service (DoS) attack.
From the GitHub Advisory Database (GHSA-fccc-8m69-8r78, 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 does not limit the amount of memory a model file can request when loading it.
Impact
An attacker could cause the server to run out of memory and become unavailable, affecting all users of that Ollama instance.
What the attacker needed
Access to upload a model to Ollama
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 is a tool for running large language models locally. A malicious user can give it a specially crafted model file that makes the program use up all the computer's memory, so the server stops working for everyone. This is called a denial of service because it stops the service from being available.
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.