Ollama Vulnerable to Denial of Service (DoS) via Crafted GZIP
High severity
GitHub Reviewed
Published
Mar 20, 2025
to the GitHub Advisory Database
•
Updated Mar 21, 2025
Description
Published by the National Vulnerability Database
Mar 20, 2025
Published to the GitHub Advisory Database
Mar 20, 2025
Last updated
Mar 21, 2025
Reviewed
Mar 21, 2025
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 theollama
server crashing. The vulnerability is present in themakeRequestWithRetry
andgetAuthorizationToken
functions, which useio.ReadAll
to read the response body. This can result in excessive memory usage and a Denial of Service (DoS) condition.References