# CVE-2024-12886: Out-Of-Memory (OOM) Vulnerability in ollama/ollama

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2025-03-20T10:10:28.146Z
- Modified: 2026-06-17T07:00:42.287Z
- Also known as: GHSA-v464-r2r9-www7, GO-2025-3548
- Weaknesses: CWE-400, CWE-409
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- ollama ollama/ollama: from unspecified up to latest
- github.com/ollama/ollama (Go): up to 0.3.14; before 0.4.0-ci1

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/f115fe52-58af-4844-ad29-b1c25f7245df> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12886> (advisory)
- <https://github.com/ollama/ollama> (package)
- <https://github.com/advisories/GHSA-v464-r2r9-www7> (advisory)

## Sources

- CVE List: [CVE-2024-12886](https://www.cve.org/CVERecord?id=CVE-2024-12886), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-v464-r2r9-www7](https://github.com/advisories/GHSA-v464-r2r9-www7), CC-BY-4.0, modified 2025-03-31
- Go Vulnerability Database: [GO-2025-3548](https://pkg.go.dev/vuln/GO-2025-3548), CC-BY-4.0, modified 2026-05-21
- NVD: [CVE-2024-12886](https://nvd.nist.gov/vuln/detail/CVE-2024-12886), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-12886 · Whole record: https://cve.day/CVE-2024-12886.json · Rebuilt by cve.day 2026-11-25T22:58:52.366Z
