CVE-2024-12886: Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.19664%
CWE
Published
3/20/2025
Updated
3/21/2025
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/ollama/ollama | go |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly names both functions as using io.ReadAll for response body handling. io.ReadAll is a well-known anti-pattern for processing untrusted HTTP responses as it reads the entire body into memory without size restrictions. When processing gzip-encoded responses (which can have extreme compression ratios), this leads to uncontrolled memory allocation. The advisory's technical details and CWE-400 classification directly align with this pattern. File paths are inferred based on Go project conventions since explicit path information wasn't provided in the advisory.