CVE-2024-39721: High severity Ollama Ollama vulnerability

Published Oct 31, 2024
·
Updated

An issue was discovered in Ollama before 0.1.34. The CreateModelHandler function uses os.Open to read a file until completion. The req.Path parameter is user-controlled and can be set to /dev/random, which is blocking, causing the goroutine to run infinitely (even after the HTTP request is aborted by the client).

Affected Software

2 affected components
Ollama Ollama<0.1.34
Ollama Ollama<0.1.34

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

Frequently Asked Questions

1

What is the severity of CVE-2024-39721?

CVE-2024-39721 has a severity rating of Medium due to the potential for denial of service from infinite blocking.

2

How do I fix CVE-2024-39721?

To fix CVE-2024-39721, upgrade to Ollama version 0.1.34 or later, where this issue has been addressed.

3

What is the impact of CVE-2024-39721?

The impact of CVE-2024-39721 is that it allows an attacker to block a goroutine indefinitely by manipulating the req.Path parameter.

4

Which versions of Ollama are affected by CVE-2024-39721?

Ollama versions earlier than 0.1.34 are affected by CVE-2024-39721.

5

What component of Ollama does CVE-2024-39721 affect?

CVE-2024-39721 affects the CreateModelHandler function in the Ollama server.

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