Browse / Unsafe Model Loading and Supply Chain / CVE-2025-0312
Ollama Denial of Service (DoS) via Null Pointer Dereference
- 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.6% chance of exploitation in 30 days
How it works, in short
A crafted GGUF model file triggers an unchecked null pointer dereference when the server creates the model, crashing the service remotely. (Our summary, written by a model. The source text is below.)
Details
A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to create a customized GGUF model file that, when uploaded and created on the Ollama server, can cause a crash due to an unchecked null pointer dereference. This can lead to a Denial of Service (DoS) attack via remote network.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-0312
- https://github.com/ollama/ollama
- https://huntr.com/bounties/522c87b6-a7ac-41b2-84f3-62fd58921f21
Source: GitHub Advisory Database, used under CC BY 4.0.