CVE-2024-12886
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.
How to fix
- github.com/ollama/ollama0.4.0-ci1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| github.com/ollama/ollamaGo | v ≤ 0.3.14, v < 0.4.0-ci1 | 0.4.0-ci1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.