Skip to content
HighVulnerability

CVE-2024-45436: Ollama path traversal in ZIP extraction in extractFromZipFile

Identifier
CVE-2024-45436
Published
Record updated
View JSON
Affected
  • github.com/ollama/ollama < 0.1.47
Fixed in
0.1.47
  • released June 27, 2024, 63 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
2.6%

Summary

CVE-2024-45436 affects extractFromZipFile in model.go in Ollama before 0.1.47. The flaw lets the function extract members of a ZIP archive outside the parent directory, which is classified as CWE-22 (Path Traversal). NVD has not yet provided an assessment.

Mitigation

Fix referenced in the source: upgrade to 0.1.47 or later. The source links the compare view v0.1.46...v0.1.47 and pull request #5314 as patch references.