Skip to content
OllamaGHSA-v464-r2r9-www7

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

High7.5CVE-2024-12886 · Published Mar 20, 2025 · updated Mar 31, 2025

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.

GitHub advisory

Affected versions

PackageAffectedFixed in
github.com/ollama/ollama
Go
<= 0.3.14No fix yet
Details and references
CVSS 3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-400, CWE-409
Also known as
CVE-2024-12886, GO-2025-3548

More Ollama advisories

All Ollama
Advisory
Ollama Server Vulnerable to Denial of Service (DoS) Attack
High7.5May 16, 2025
Ollama Divide By Zero vulnerability
High7.5Mar 20, 2025
Ollama Allocation of Resources Without Limits or Throttling vulnerability
High7.5Mar 20, 2025
Ollama Denial of Service (DoS) via Null Pointer Dereference
High7.5Mar 20, 2025
Ollama Divide by Zero Vulnerability
High7.5Mar 20, 2025
Ollama Allows Out-of-Bounds Read
High7.5Mar 20, 2025

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.