CVE-2024-12886
HIGH 7.5CVSS 3.0Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP
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.
- Published
- 20 Mar 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Deferred
- Weakness
- CWE-400CWE-409
- Also known as
- GHSA-v464-r2r9-www7GO-2025-3548
- Sources
- NVDJSONOSV GHSA-v464-r2r9-www7JSONOSV GO-2025-3548JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/ollama/ollama | <= 0.3.14 | |
| OSV | Go | github.com/ollama/ollama | < 0.4.0-ci1 | 0.4.0-ci1 |
References
- https://huntr.com/bounties/f115fe52-58af-4844-ad29-b1c25f7245df · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-12886 · ADVISORY
- https://github.com/ollama/ollama · PACKAGE
- https://github.com/advisories/GHSA-v464-r2r9-www7 · ADVISORY
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Mar 2025)