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

CVE-2024-28224: Ollama DNS rebinding vulnerability

highCVSS 3.1 8.8GHSA-5jx5-hqx5-2vrj

Ollama before 0.1.29 is open to DNS rebinding. A web page can reach the local Ollama API through the victim's browser, then chat with models, delete models or exhaust resources. The fix is Ollama 0.1.29.

Published Apr 8, 2024 · Updated Mar 27, 2025 · Analysis Nov 2, 2026

What an attacker can do

DNS rebinding turns a victim's browser into a bridge to a service that listens only on the local machine. An attacker serves a page from a domain they control. Their DNS then points that name at the address where Ollama listens. The browser treats the API as the same origin as the attacker's page, so the page can call the full Ollama API. Ollama before 0.1.29 did not stop this.

The victim must visit the attacker's page, which matches the user-interaction flag in the CVSS vector. No credentials are needed, because the Ollama API has none by default. The advisory lists three outcomes: chatting with a loaded model, deleting a model, and denial of service through resource exhaustion. The CVSS vector scores confidentiality, integrity and availability all high. For a developer machine that runs Ollama beside coding agents, this means a web page can use the local model and remove models without any prompt on screen. The sources I could read give no detail beyond this.

Who is affected

All Ollama releases before 0.1.29, including the Go module github.com/ollama/ollama. Any host running the Ollama server while its user browses the web is in scope.

Check the installed version:

ollama --version

For the Go module:

go list -m github.com/ollama/ollama

github.com/ollama/ollama

Ecosystem
Go
Affected
< 0.1.29
Fixed in
0.1.29
Check
go list -m github.com/ollama/ollama

How to fix it

Upgrade to Ollama 0.1.29 or later. Download the current release from the Ollama project and restart the server. On Linux, rerun the install script or replace the binary, then restart the service. The Go vulnerability database lists v0.1.29 as the first fixed version. The sources I could read do not give a workaround for older builds. Do not run an old build while you browse the web.

How to tell if you were hit

The sources give no log signature. Practical checks: look for models that disappeared from the output of ollama list without your action, and for Ollama server logs showing API requests (chat, generate or delete) at times when you were not using it. Unexplained CPU or GPU load from the ollama process while a browser tab is open is another sign. Confirm your version is 0.1.29 or later.

Original advisory

From the GitHub Advisory Database (CC BY 4.0).

Ollama before 0.1.29 has a DNS rebinding vulnerability that can inadvertently allow remote access to the full API, thereby letting an unauthorized user chat with a large language model, delete a model, or cause a denial of service (resource exhaustion).

Questions

Is Ollama 0.1.29 affected by CVE-2024-28224?

No. 0.1.29 is the fixed version. The vulnerable range is everything before 0.1.29.

Does the attacker need network access to my machine?

Not directly. The attack runs through your browser, which reaches the local Ollama API after DNS rebinding. You have to visit the attacker's page, so the CVSS vector sets user interaction to required.

What can the attacker do?

The advisory says an unauthorized user can chat with a language model, delete a model, or cause a denial of service through resource exhaustion.

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