CVE-2024-39721

High

Description

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).

SeverityHigh
CVSS7.5
Exploit probability—
ProductOllama
PublishedOct 31, 2024
First seenOct 31, 2024
Weakness typeCWE-404CWE-404

How to fix

Update
  • ollama ollama0.1.34 or later

Affected products

ProductAffected versionsFixed in
ollama ollamav < 0.1.340.1.34

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2024-39721 · Ollama · Dark Radar