CVE-2024-39720: High severity Ollama Ollama vulnerability

Published Oct 31, 2024
·
Updated

An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header. By leveraging a custom Modelfile that includes a FROM statement pointing to the attacker-controlled blob file, the attacker can crash the application through the CreateModel route, leading to a segmentation fault (signal SIGSEGV: segmentation violation).

Affected Software

2 affected componentsFixes available
go/github.com/ollama/ollama<0.1.46
0.1.46
Ollama Ollama<0.1.46

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/ollama/ollama to a version that resolves this vulnerability.

    Fixed in 0.1.46

Event History

Oct 31, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·09:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-39720?

The severity of CVE-2024-39720 has not been assigned a CVSS score, but it is considered a significant vulnerability due to potential unauthorized code execution.

2

How do I fix CVE-2024-39720?

To fix CVE-2024-39720, upgrade to Ollama version 0.1.46 or later.

3

What software is affected by CVE-2024-39720?

CVE-2024-39720 affects Ollama versions prior to 0.1.46.

4

What type of attack is possible with CVE-2024-39720?

CVE-2024-39720 allows an attacker to upload a malformed GGUF file through crafted HTTP requests.

5

What are the potential impacts of CVE-2024-39720?

The potential impacts of CVE-2024-39720 include the execution of malicious code and unauthorized access to system resources.

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