Skip to content
DoS Disclosed report Intermediate CVE-2025-0312

Ollama Denial of Service (DoS) via Null Pointer Dereference

A malicious user could create a crafted GGUF model file that, when uploaded and created on the Ollama server, triggers an unchecked null pointer dereference and crashes the server. This allows a remote network denial of service attack.

github.com/ollama/ollama

Originally disclosed on huntr

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.

From the GitHub Advisory Database (GHSA-p2wh-w96x-w232, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server does not check whether a pointer is null before using it when processing a crafted GGUF model file.

Impact

A remote attacker could crash the Ollama server, causing a denial of service for other users.

What the attacker needed

Ability to upload a model file; access to Ollama server

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A null pointer dereference is a programming mistake where the software tries to use a memory address that points to nothing, which makes the program crash. Here, someone can upload a specially made model file to an Ollama server, and when the server tries to use it, the server crashes. That means other people can no longer use the service, which is called a denial of service.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from github.com/ollama/ollama

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.