CVE-2025-1975: Ollama Server Vulnerable to Denial of Service (DoS) Attack
Ollama 0.5.11 and earlier crashes when it pulls a model whose manifest has been tampered with. The `/api/pull` endpoint does not validate an array index, so a malicious registry or a spoofed service can take the server down. The advisory data lists no patched version.
Published May 16, 2025 · Updated Jun 6, 2026 · Analysis Nov 1, 2026
What an attacker can do
When you pull a model, Ollama downloads a manifest from a registry and reads its layers. The advisory says /api/pull does not properly validate an array index while handling that manifest. An attacker who customizes the manifest content and spoofs the service the server pulls from can make that index go out of range, and the server process crashes.
There are two ways to put the malicious manifest in front of the server. The attacker can send a pull request for a model name or registry host they control, if they can reach the API. Or they can impersonate the registry the server already trusts. The CVSS 3.0 vector rates network access, low complexity, no privileges, and high availability impact only. The result is an Ollama server that stops answering until restarted. Everything that depends on it, such as chat apps and agents, loses its model backend. The advisory does not describe data exposure or code execution.
Who is affected
The advisory names Ollama server 0.5.11, and the package data lists <= 0.5.11 for the Go module github.com/ollama/ollama. Check the running version:
ollama --versionFor a Go build, go list -m github.com/ollama/ollama shows the module version. The /api/pull endpoint is on by default.
github.com/ollama/ollama
- Ecosystem
- Go
- Affected
- <= 0.5.11
- Fixed in
- No patched version yet
- Check
go list -m github.com/ollama/ollama
How to fix it
The package data records no patched version, and the sources we read name none. Check the Ollama releases page for a build newer than 0.5.11 and the Go vulnerability entry GO-2025-3695 for fix status before relying on a newer version.
The sources give no workaround. Reasonable mitigations: do not expose the Ollama port (default 11434) to untrusted networks, put authentication in front of /api/pull, and pull models only from registries you trust over verified TLS.
How to tell if you were hit
Look in Ollama's logs for a panic with an index out of range error shortly after a /api/pull request, followed by a process restart. Review which hosts sent pull requests and which model names or registries they named. Repeated unexpected restarts of the Ollama service are the main sign. Beam is not involved in this server-side flaw.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by customizing the manifest content and spoofing a service. This is due to improper validation of array index access when downloading a model via the /api/pull endpoint, which can lead to a server crash.
Questions
- Is there a fixed Ollama version for CVE-2025-1975?
The advisory data lists none. It marks
<= 0.5.11as vulnerable with no patched version. Check the Ollama releases and GO-2025-3695 for the current status.- Can this be exploited remotely?
Yes, over the network with no privileges, if the attacker can reach
/api/pullor can spoof the registry the server pulls from. The impact is a crash, not code execution.- Does the crash lose my models?
The sources do not say so. They describe a server crash only. Restarting the service brings Ollama back.
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 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-2024-12055
Ollama Allows Out-of-Bounds Read
high7.5No fixMar 20, 2025
