CVE-2024-28224: Ollama DNS rebinding vulnerability
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 --versionFor the Go module:
go list -m github.com/ollama/ollamagithub.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
Read for this analysis:
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 entriesCVE-2026-7482
Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader
high9.1May 4, 2026CVE-2026-7020
Ollama is Vulnerable to Path Traversal
low5.6No fixApr 26, 2026CVE-2025-63389
Ollama Platform has missing authentication enabling attackers to perform model management operations
critical9.3No fixDec 18, 2025CVE-2025-44779
Ollama allows deletion of arbitrary files
medium6.6Aug 7, 2025CVE-2025-51471
Ollama vulnerable to Cross-Domain Token Exposure
medium6.9No fixJul 22, 2025CVE-2025-1975
Ollama Server Vulnerable to Denial of Service (DoS) Attack
high7.5No fixMay 16, 2025
