CVE-2024-39722
Wolfi vulnerability analysis and mitigation

Overview

An issue was discovered in Ollama before version 0.1.46 that exposes which files exist on the server on which it is deployed via path traversal in the api/push route. The vulnerability was assigned CVE-2024-39722 and was disclosed on October 31, 2024. This vulnerability affects the Ollama framework, which is one of the most widely-used open-source projects for AI models with over 93,000 stars on GitHub (Oligo Blog).

Technical details

The vulnerability exists in the api/push route and allows an attacker to determine which files exist on the server through path traversal. When calling the api/push route with a path parameter that does not exist, it reflects the escaped URI to the attacker, providing a primitive for file existence on the server and user that executes it. The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N, and is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) (NIST NVD).

Impact

The vulnerability enables attackers to discover the server's directory structure and file system information, which could be leveraged for further attacks. At the time of disclosure, approximately 10,000 unique internet-facing IPs were running Ollama, with one in four servers being vulnerable to this and other vulnerabilities uncovered by the research team (Oligo Blog).

Mitigation and workarounds

The vulnerability has been patched in Ollama version 0.1.46. Organizations running Ollama should upgrade to this version or later to mitigate the risk. The fix was released on June 9, 2024 (Oligo Blog).

Additional resources


SourceThis report was generated using AI

Related Wolfi vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66471HIGH8.9
  • PythonPython
  • urllib3
NoYesDec 05, 2025
CVE-2025-66418HIGH8.9
  • PythonPython
  • py3-urllib3
NoYesDec 05, 2025
CVE-2025-66564HIGH7.5
  • Datadog AgentDatadog Agent
  • cosign
NoYesDec 04, 2025
CVE-2025-66490MEDIUM6.9
  • WolfiWolfi
  • github.com/traefik/traefik
NoYesDec 09, 2025
CVE-2025-66491MEDIUM5.9
  • WolfiWolfi
  • traefik
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management