Skip to main content
← All vulnerabilities
CVE-2024-12886GHSA-V464-R2R9-WWW7GO-2025-3548

Out-Of-Memory (OOM) Vulnerability in ollama/ollama

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.0-ci1
2 proofs of concept on GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • ollama ollama/ollama

    Version range not reported

  • github.com/ollama/ollamaGo

    through 0.3.14

  • github.com/ollama/ollamaGo

    fixed in 0.4.0-ci1

References 3

huntr.com

GitHub · dannyEndorTest/ollama

GitHub · dannyEndorTest/ollama-consumer