Skip to main content
VulnerabilityPublished Updated

CVE-2024-39722: Ollama · Path Traversal

Source CVE Database V5

0

Not known to be exploited · CVSS 7.5 High · fixed in 0.1.46 : patch Ollama soon.

Data as of 26 Oct 2026, 12:29 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 31 Oct 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

  1. Upgrade Ollama to version 0.1.46 or later as soon as the patch is available to eliminate the path traversal vulnerability.
  2. 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.
  3. Employ web application firewalls (WAFs) with custom rules to detect and block path traversal attempts targeting the api/push endpoint.
  4. Restrict network access to the Ollama service to trusted internal networks or VPNs, minimizing exposure to external attackers.
  5. Conduct regular security audits and penetration testing focusing on file path handling and API endpoints.
  6. Monitor logs for unusual requests containing suspicious path traversal patterns to detect potential exploitation attempts early.
  7. Implement least privilege file system permissions for the Ollama server process to limit file visibility and access even if traversal occurs.
  8. 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.

References

Community reviews

Loading reviews…