CVE-2024-12886: ollama/ollama · Data Amplification
Affects ollama/ollamaSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubollama/ollamapkg:github/ollama/ollamaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2024-12886, organizations should implement strict limits on the size of HTTP response bodies accepted by the ollama server, especially when handling compressed content. Specifically, developers should avoid using io.ReadAll without size constraints and instead use streaming or buffered reading with maximum size thresholds. Validating the Content-Encoding header and rejecting suspicious or excessively compressed payloads can prevent gzip bomb exploitation. Monitoring memory usage and setting resource quotas for the ollama process can help detect and contain abnormal behavior. Applying patches or updates from the ollama vendor as soon as they become available is critical. Network-level protections, such as Web Application Firewalls (WAFs) or Intrusion Prevention Systems (IPS), can be configured to detect and block gzip bomb patterns. Finally, conducting regular security assessments and fuzz testing on API endpoints can identify similar vulnerabilities proactively.
Description
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.