CVE-2024-12886

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductGithub.com/ollama/ollama
PublishedMar 20, 2025
First seenMar 20, 2025
Weakness typeCWE-409CWE-409

How to fix

Update
  • github.com/ollama/ollama0.4.0-ci1 or later

Affected products

ProductAffected versionsFixed in
github.com/ollama/ollamaGov ≤ 0.3.14, v < 0.4.0-ci10.4.0-ci1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-12886 · Github.com/ollama/ollama · Dark Radar