Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2024-12886 EUVD-2025-6985GHSA-v464-r2r9-www7GO-2025-3548

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

Published Mar 20, 2025 · Updated Oct 15, 2025 · 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.

Affected products

VendorProductAffectedFixed
ollama ollama/ollama unspecified – ≤ latest —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250331T171002-1.1 openSUSE-SU-2025:14955-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

  • dannyEndorTest/ollama-consumer ★ 0 · May 20, 2026

    Demo consumer for ollama v0.5.0 (vulnerable range for CVE-2024-12886) — endorctl scan target

  • dannyEndorTest/ollama ★ 0 · May 19, 2026

    EXPOSURE demo target (ollama) — HOT baseline for CVE-2024-12886. See README.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama <= 0.3.14 — GHSA-v464-r2r9-www7
Go github.com/ollama/ollama < 0.4.0-ci1 0.4.0-ci1 GO-2025-3548

Advisories 2

References