Skip to main content
VulnerabilityPublished

CVE-2024-45436: ollama · Path Traversal

Affects ollamaSource CVE Database V5

0

Not known to be exploited · CVSS 9.1 Critical : upgrade to 0.1.47 as a priority.

Data as of 26 Oct 2026, 11:07 UTC

CVSS 3.1 base score
9.1Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.5% chance of exploitation in 30 days – higher than 84% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.1.47
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Aug 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

Upgrade ollama/ollama to 0.1.47.

Affected software

ProductAffectedFixed in
GitHubollama/ollamapkg:github/ollama/ollamaOther threatsAffected
  • <0.1.47
Fixed in
  • 0.1.47

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-45436, organizations should immediately upgrade Ollama to version 0.1.47 or later once available, as this version addresses the directory traversal issue. Until an upgrade is possible, implement strict input validation to reject ZIP archives containing suspicious path elements such as '../' sequences or absolute paths. Employ sandboxing or containerization to isolate the extraction process, limiting the potential impact of any malicious file writes. Monitor file system changes in directories where ZIP files are extracted to detect unauthorized modifications. Additionally, restrict the sources of ZIP files to trusted origins and use file integrity monitoring tools to verify critical files have not been altered. Security teams should also review application logs for unusual extraction activities and consider deploying host-based intrusion detection systems (HIDS) to alert on suspicious file operations. Finally, coordinate with Ollama developers or vendors for official patches and security advisories.

Description

extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.

References

Community reviews

Loading reviews…