CVE-2024-12886: Out-Of-Memory (OOM) Vulnerability in ollama/ollama

Published Mar 20, 2025
·
Updated

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.

Affected Software

2 affected components
Ollama Ollama
go/github.com/ollama/ollama<=0.3.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ollama/ollama to a version that resolves this vulnerability.

    Fixed in 0.3.14
  2. Compensating control

    Mitigate DoS risk by blocking or restricting connections from untrusted/malicious upstream API servers that could return gzip-bomb HTTP responses to the ollama server.

Event History

Mar 20, 2025
CVE Published
via MITRE·10:10 AM
Data Sourced
via MITRE·10:10 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·12:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-12886?

CVE-2024-12886 is classified as a high-severity vulnerability due to its potential to crash the `ollama` server.

2

How do I fix CVE-2024-12886?

To mitigate CVE-2024-12886, upgrade the `ollama` server to a version newer than 0.3.14 where the vulnerability has been addressed.

3

What type of vulnerability is CVE-2024-12886?

CVE-2024-12886 is an Out-Of-Memory (OOM) vulnerability that can be triggered by malicious HTTP responses.

4

Which versions of `ollama` are affected by CVE-2024-12886?

CVE-2024-12886 affects `ollama` server version 0.3.14 and earlier.

5

What happens if CVE-2024-12886 is exploited?

Exploitation of CVE-2024-12886 can lead to the `ollama` server crashing, resulting in denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203