{"id":"CVE-2024-12886","aliases":["CVE-2024-12886","GHSA-v464-r2r9-www7","GO-2025-3548"],"related":[],"kind":"vulnerability","state":"published","title":"Out-Of-Memory (OOM) Vulnerability in ollama/ollama","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP in github.com/ollama/ollama","format":"markdown","source":"go"},{"lang":"es","text":"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).","source":"nvd"}],"published":"2025-03-20T10:10:28.146Z","modified":"2026-06-17T07:00:42.287Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-409"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"ollama","product":"ollama/ollama","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.3.14"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.4.0-ci1"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"go"}],"references":[{"url":"https://huntr.com/bounties/f115fe52-58af-4844-ad29-b1c25f7245df","tags":["web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12886","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ollama/ollama","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-v464-r2r9-www7","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-03-20T17:51:32.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-12886","url":"https://www.cve.org/CVERecord?id=CVE-2024-12886","licence":"CVE Terms of Use","modified":"2025-10-15T12:49:34.228Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v464-r2r9-www7","url":"https://github.com/advisories/GHSA-v464-r2r9-www7","licence":"CC-BY-4.0","modified":"2025-03-31T17:44:33.215Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3548","url":"https://pkg.go.dev/vuln/GO-2025-3548","licence":"CC-BY-4.0","modified":"2026-05-21T18:15:09.808Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-12886","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-12886","licence":"Public domain","modified":"2026-06-17T07:00:42.287Z"}],"updatedAt":"2026-11-25T22:58:52.366Z","epss":{"score":0.00733,"percentile":0.55608,"date":"2026-12-01T12:00:22.000Z"}}