7.5

CVE-2024-39721: ollama Improper Resource Shutdown or Release

CVSS: 7.5v3.1HighAnalyzed
Published 31-10-2024Last modified 01-11-2024

Vulnerability summary

CVE-2024-39721 is a high (CVSS 7.5) Improper Resource Shutdown or Release vulnerability in ollama. EPSS estimates a 2.64% chance of exploitation in the next 30 days, higher than 85.4% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
41/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
2.64%
0%100%
Low · -0.02 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 31-10-2024
    PublishedVulnerability first disclosed.
  2. 01-11-2024
    Last modifiedVulnerability information updated.

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

CVSS metrics

2 scores · 2 sources · 1 version

EPSS trend

Probability

2.64%

Chance of exploitation in the next 30 days

Percentile

85%

Versus all other CVEs

30-day change

-0.02 pp

From 2.67% on 21-09-2026

21-09-202621-10-2026
EPSS score
2.64%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (oligo.security)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Ollama1 product

1 vendor · 1 product

References

3 links