CVE-2024-12886
JSON

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 packageVersionsReported by
ollama ollama/ollamafrom unspecified up to latestCVE List
github.com/ollama/ollama (Go)up to 0.3.14, before 0.4.0-ci1GitHub Advisory Database, Go Vulnerability Database

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-400CWE-409

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2024-12886 changed 2025-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-v464-r2r9-www7 changed 2025-03-31CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3548 changed 2026-05-21CC-BY-4.0
NVDCVE-2024-12886 changed 2026-06-17Public domain