High severity · published Mar 20, 2025
CVE-2024-12886
Out-Of-Memory (OOM) Vulnerability in ollama/ollama
7.5
CVSS
0.7%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
OL
ollama/ollama · ollama
through latest · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-12886
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-12886
huntr.com
https://huntr.com/bounties/f115fe52-58af-4844-ad29-b1c25f7245df
More from ollama/ollama
7.5
CVE-2025-1975
Improper Validation of Array Index in ollama/ollama
7.5
CVE-2024-8063
Divide by Zero in ollama/ollama
7.5
CVE-2025-0312
NULL Pointer Dereference in ollama/ollama
7.5
CVE-2025-0317
Divide By Zero in ollama/ollama
7.5
CVE-2025-0315
Allocation of Resources Without Limits or Throttling in ollama/ollama
