Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP
High severity
GitHub Reviewed
Published
Mar 20, 2025
to the GitHub Advisory Database
•
Updated Oct 15, 2025
Description
Published by the National Vulnerability Database
Mar 20, 2025
Published to the GitHub Advisory Database
Mar 20, 2025
Reviewed
Mar 21, 2025
Last updated
Oct 15, 2025
An Out-Of-Memory (OOM) vulnerability exists in the
ollamaserver version 0.3.14. This vulnerability can be triggered when a malicious API server responds with a gzip bomb HTTP response, leading to theollamaserver crashing. The vulnerability is present in themakeRequestWithRetryandgetAuthorizationTokenfunctions, which useio.ReadAllto read the response body. This can result in excessive memory usage and a Denial of Service (DoS) condition.References