7.5high
Out-Of-Memory (OOM) Vulnerability in ollama/ollama
- Severity
- 7.5high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.73% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-v464-r2r9-www7GO-2025-3548
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
| Product or package | Versions | Reported by |
|---|---|---|
| ollama ollama/ollama | from unspecified up to latest | CVE List |
| github.com/ollama/ollama (Go) | up to 0.3.14, before 0.4.0-ci1 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP in github.com/ollama/ollama
NVD (es)
Existe una vulnerabilidad de falta de memoria (OOM) en la versión 0.3.14 del servidor `ollama`. Esta vulnerabilidad puede activarse cuando un servidor API malicioso responde con una bomba HTTP gzip, lo que provoca el bloqueo del servidor `ollama`. La vulnerabilidad está presente en las funciones `makeRequestWithRetry` y `getAuthorizationToken`, que utilizan `io.ReadAll` para leer el cuerpo de la respuesta. Esto puede provocar un uso excesivo de memoria y una denegación de servicio (DoS).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-12886 changed 2025-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v464-r2r9-www7 changed 2025-03-31 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-3548 changed 2026-05-21 | CC-BY-4.0 |
| NVD | CVE-2024-12886 changed 2026-06-17 | Public domain |