Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai
CVE-2024-12886Out-Of-Memory (OOM) Vulnerability in ollama/ollama
High 7.5
In plain English
A high-severity security flaw in ollama/ollama from ollama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/ollama/ollama | no fix listed | GHSA-v464-r2r9-www7 |
| Go | github.com/ollama/ollama | 0.4.0-ci1 | GO-2025-3548 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ollama | ollama/ollama | unspecified – through latest |
Weakness: CWE-409 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H