NewApp Monitoring is liveSign up free
AgentbeamBeta
AI agent vulnerability · Ollama

CVE-2024-12055: Ollama Allows Out-of-Bounds Read

highCVSS 3.0 7.5GHSA-89qx-m49c-8crf

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 --version

For a module dependency:

go list -m github.com/ollama/ollama

Exposure 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 entries