INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-12886

Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP

CVE-2024-12886 ยท 2025-03-20 high

Class
AI Framework and Platform Flaws (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.7% chance of exploitation in 30 days

How it works, in short

A malicious API server returns a gzip bomb that Ollama reads fully into memory, exhausting the server's memory. (Our summary, written by a model. The source text is below.)

Details

An Out-Of-Memory (OOM) vulnerability exists in the ollama server version 0.3.14. This vulnerability can be triggered when a malicious API server responds with a gzip bomb HTTP response, leading to the ollama server crashing. The vulnerability is present in the makeRequestWithRetry and getAuthorizationToken functions, which use io.ReadAll to read the response body. This can result in excessive memory usage and a Denial of Service (DoS) condition.

References

Source: GitHub Advisory Database, used under CC BY 4.0.