NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Ollama

CVE-2025-0315: Ollama Allocation of Resources Without Limits or Throttling vulnerability

highCVSS 3.0 7.5GHSA-fccc-8m69-8r78

Ollama 0.3.14 and earlier can be driven to allocate unlimited memory by a crafted GGUF model file. After the attacker uploads the file and creates the model, the server runs out of memory and stops serving. The advisory data lists no patched version.

Published Mar 20, 2025 · Updated Mar 21, 2025 · Analysis Nov 1, 2026

What an attacker can do

The attacker builds a GGUF file with values that make Ollama allocate memory without any cap while it creates the model. The sources do not say which header field drives the allocation. The host exhausts memory and the Ollama process is killed, or the whole machine slows down if other services share it. The weakness class is CWE-770, allocation without limits. The CVSS vector has no privileges or user interaction and scores availability only.

Ollama has no authentication of its own, so any client that can reach the API can upload a blob and request creation. On a GPU box shared by several agents or teams, memory pressure can take other workloads down with it, not only Ollama. No data leak or code execution is described.

Who is affected

The Go module github.com/ollama/ollama at 0.3.14 and earlier. Servers reachable beyond localhost are the practical risk.

Check the version and where the API listens:

ollama --version

Then look at OLLAMA_HOST in the service environment.

github.com/ollama/ollama

Ecosystem
Go
Affected
<= 0.3.14
Fixed in
No patched version yet
Check
go list -m github.com/ollama/ollama

How to fix it

No patched version is listed and the sources give no fix commit. Move to the latest Ollama release and read its notes for GGUF handling changes.

Until then, keep the API off untrusted networks, put an authenticating proxy in front, and set a memory limit on the process or container (for example a cgroup or Kubernetes limit), so a runaway allocation kills only Ollama and not the host.

How to tell if you were hit

Look for sudden memory growth in the ollama process right after a model create call, followed by an out-of-memory kill in the kernel log or container events. Check server logs for create and blob upload requests from unexpected clients, and for models you did not create in ollama list.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

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.

Questions

How is CVE-2025-0315 different from the other Ollama GGUF bugs?

It is a memory exhaustion bug. CVE-2025-0312 is a null pointer crash and CVE-2025-0317 is a division by zero in ggufPadding. All three use a crafted GGUF file.

Is there a patch for CVE-2025-0315?

The advisory lists none. It marks 0.3.14 and earlier as vulnerable. Use the latest release.

Does the attacker need an account?

No account is named. The CVSS vector has no privileges required, and Ollama has no built-in login.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology

More Ollama vulnerabilities

All Ollama entries