Browse / Unsafe Model Loading and Supply Chain / CVE-2025-1975
Ollama Server Vulnerable to Denial of Service (DoS) Attack
- Class
- Unsafe Model Loading and Supply Chain (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- github.com/ollama/ollama (Go)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS
- 0.5% chance of exploitation in 30 days
How it works, in short
A malicious registry manifest pulled through the model download endpoint triggers an out-of-range array index that crashes the Ollama server. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-1975
- https://github.com/ollama/ollama
- https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-145.yaml
- https://huntr.com/bounties/921ba5d4-f1d0-4c66-9764-4f72dffe7acd
- https://pkg.go.dev/vuln/GO-2025-3695
Source: GitHub Advisory Database, used under CC BY 4.0.