CVE-2024-12886

CVSS 3.0 Score 7.5 of 10 (high)

Details

Published Mar 20, 2025
CWE ID 400

Summary

CVE-2024-12886 is an Out-Of-Memory (OOM) vulnerability affecting the `ollama` server version 0.3.14. Malicious API servers can exploit this issue by sending gzip bomb HTTP responses, causing the `ollama` server to crash due to excessive memory usage. The vulnerability lies in the `makeRequestWithRetry` and `getAuthorizationToken` functions, which use `io.ReadAll` to read the response body without proper size validation. This results in a Denial of Service (DoS) condition when the server is unable to handle the large response, leading to potential crashes and service disruptions.

Ligh bulbPrevent cyber attacks with Recorded Future by prioritizing and patching critical vulnerabilities being exploited by threat actors targeting your industry. Book your demo to learn more.

Share