Vulnerability in Ollama Ollama/ollama
CVE-2024-12886
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.007, 55.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ollama Ollama/ollama — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- dannyEndorTest/ollama (last pushed 2026-05-20): EXPOSURE demo target (ollama) — HOT baseline for CVE-2024-12886. See README.
- dannyEndorTest/ollama-consumer (last pushed 2026-05-20): Demo consumer for ollama v0.5.0 (vulnerable range for CVE-2024-12886) — endorctl scan target
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.