CVE-2024-12055: Ollama Allows Out-of-Bounds Read
Ollama 0.3.14 and earlier has an out-of-bounds read in `gguf.go`. A crafted GGUF model file crashes the server when it processes it, which is a denial of service for anyone sharing that Ollama instance. The advisory lists no patched version.
Published Mar 20, 2025 · Updated Mar 22, 2025 · Analysis Nov 1, 2026
What an attacker can do
Ollama parses GGUF model files in gguf.go. A file with malformed length or count fields makes the parser read past the end of its buffer, and the server process crashes. The advisory says the attacker can upload such a model to a public Ollama server.
The CVSS 3.0 vector (7.5) says network, low complexity, no privileges, no user interaction and availability only. An attacker who can reach the Ollama API (default port 11434, which has no built-in authentication) and push or create a model from a file can take the server down. Anyone using that instance loses inference until it restarts. The advisory does not describe data disclosure or code execution. The same crash can happen if a user pulls a malicious model from a source they do not trust.
Who is affected
The Go module github.com/ollama/ollama at version 0.3.14 and earlier. Check the installed version:
ollama --versionFor a module dependency:
go list -m github.com/ollama/ollamaExposure is highest when the API is bound to a non-loopback address (OLLAMA_HOST) or published through a container port.
github.com/ollama/ollama
- Ecosystem
- Go
- Affected
- <= 0.3.14
- Fixed in
- No patched version yet
- Check
go list -m github.com/ollama/ollama
How to fix it
The advisory lists no patched version. Check Ollama releases newer than 0.3.14 and their notes for changes to GGUF parsing, then upgrade to the latest. The sources name no workaround. General mitigations: keep the Ollama API on loopback or a private network, put an authenticating reverse proxy in front of it if it must be shared, block untrusted users from the model create and push routes, and restart the service automatically if it dies. Only load models from sources you trust.
How to tell if you were hit
Look for repeated Ollama process crashes or restarts, with a panic or index out of range trace that passes through the GGUF code in gguf.go. In the server log, find which model was being created or loaded just before the crash, and check which client address made the request. Review newly created or pulled models you did not add yourself.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
A vulnerability in Ollama versions <=0.3.14 allows a malicious user to create a customized gguf model file that can be uploaded to the public Ollama server. When the server processes this malicious model, it crashes, leading to a Denial of Service (DoS) attack. The root cause of the issue is an out-of-bounds read in the gguf.go file.
Questions
- Is there a fixed Ollama version for CVE-2024-12055?
The advisory lists none. It covers 0.3.14 and earlier. Check newer releases and their notes.
- Does the attacker need an account?
The CVSS vector requires no privileges. Ollama has no built-in authentication, so anyone who can reach the API can try it.
- Can this lead to code execution?
No source says so. The advisory describes a crash (denial of service) only.
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-2025-1975
Ollama Server Vulnerable to Denial of Service (DoS) Attack
high7.5No fixMay 16, 2025
