CVE-2024-39722: Ollama · Path Traversal
Source CVE Database V5
Not known to be exploited · CVSS 7.5 High · fixed in 0.1.46 : patch Ollama soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 3.9% chance of exploitation in 30 days – higher than 90% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Affects
- Ollama before 0.1.46
- Patch
- Available – fixed in 0.1.46
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 31 Oct 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
- Upgrade Ollama to version 0.1.46 or later as soon as the patch is available to eliminate the path traversal vulnerability.
- If you cannot patch yet, implement strict input validation and sanitization on the api/push route to reject any path traversal sequences such as '../' or absolute paths.
- Employ web application firewalls (WAFs) with custom rules to detect and block path traversal attempts targeting the api/push endpoint.
- Restrict network access to the Ollama service to trusted internal networks or VPNs, minimizing exposure to external attackers.
- Conduct regular security audits and penetration testing focusing on file path handling and API endpoints.
- Monitor logs for unusual requests containing suspicious path traversal patterns to detect potential exploitation attempts early.
- Implement least privilege file system permissions for the Ollama server process to limit file visibility and access even if traversal occurs.
- Educate development and operations teams about secure coding practices related to file path handling to prevent similar vulnerabilities in the future.
Description
An issue was discovered in Ollama before 0.1.46. It exposes which files exist on the server on which it is deployed via path traversal in the api/push route.