Security Resilience

CVE-2024-39721

Ollama ≤ 0.1.34

Public PoC
Published
31 October 2024
Modified
13 May 2025
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.027 86th percentile
Risk Priority 62 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-39721 is a high-severity Improper Resource Shutdown or Release (CWE-404) vulnerability in Ollama. Its CVSS base score is 7.5 (High).

Operationally, ranked in the top 14% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

This vulnerability is AI-related — categorised as LLM Application Platforms; in the Other ATLAS/OWASP Terms risk domain.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SA-8 (Security and Privacy Engineering Principles) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

after the HTTP request is aborted by the client).

CWE(s)

AI Security AnalysisAI

AI Category
LLM Application Platforms
Risk Domain
Other ATLAS/OWASP Terms
OWASP Top 10 for LLMs 2025
None mapped
Classification Reason
Ollama is an open-source platform/framework for running LLMs locally or in cloud, providing APIs for model management (create, push, pull) and inference, fitting 'Other Platforms' as an AI model serving and deployment platform.

Related Threats

CVEs Like This One

CVE-2024-39722Same product: Ollama Ollama
CVE-2024-39720Same product: Ollama Ollama
CVE-2024-39719Same product: Ollama Ollama
CVE-2024-28224Same product: Ollama Ollama
CVE-2026-15685Same product: Ollama Ollama
CVE-2025-15514Same product: Ollama Ollama
CVE-2025-66960Same product: Ollama Ollama
CVE-2025-44779Same product: Ollama Ollama
CVE-2025-0317Same product: Ollama Ollama
CVE-2026-7482Same product: Ollama Ollama

Affected Assets

ollama
ollama
≤ 0.1.34

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can discover missing or incorrect resource releases after code is written.

Engineering principles can require explicit resource acquisition/release patterns that stop improper shutdown from being introduced.

Priority-based resource allocation limits the blast radius when released resources are not returned to the pool.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-404, a class-level weakness, and none of its children carries one either.

References