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.
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| github.com/ollama/ollama Go | <= 0.3.14 | No fix yet |
Details and references
More Ollama advisories
All Ollama| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| May 162025 | Ollama Server Vulnerable to Denial of Service (DoS) Attack | High7.5 | No fix yet |
| Mar 202025 | Ollama Divide By Zero vulnerability | High7.5 | No fix yet |
| Mar 202025 | Ollama Allocation of Resources Without Limits or Throttling vulnerability | High7.5 | No fix yet |
| Mar 202025 | Ollama Denial of Service (DoS) via Null Pointer Dereference | High7.5 | No fix yet |
| Mar 202025 | Ollama Divide by Zero Vulnerability | High7.5 | No fix yet |
| Mar 202025 | Ollama Allows Out-of-Bounds Read | High7.5 | No fix yet |