Bug 2353630 (CVE-2024-12886) - CVE-2024-12886 ollama: Out-Of-Memory (OOM) Vulnerability in ollama/ollama
Summary: CVE-2024-12886 ollama: Out-Of-Memory (OOM) Vulnerability in ollama/ollama
Keywords:
Status: NEW
Alias: CVE-2024-12886
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-03-20 11:04 UTC by OSIDB Bzimport
Modified: 2025-04-14 13:25 UTC (History)
24 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-03-20 11:04:55 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.