Browse / AI Framework and Platform Flaws / CVE-2024-45436
Ollama can extract members of a ZIP archive outside of the parent directory
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- github.com/ollama/ollama (Go)
- CVSS
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 2.6% chance of exploitation in 30 days
How it works, in short
Zip archive entries containing parent-directory path segments are written outside the intended extraction folder. (Our summary, written by a model. The source text is below.)
Details
extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-45436
- https://github.com/ollama/ollama/pull/5314
- https://github.com/ollama/ollama/commit/123a722a6f541e300bc8e34297ac378ebe23f527
- https://github.com/ollama/ollama
- https://github.com/ollama/ollama/compare/v0.1.46...v0.1.47
Source: GitHub Advisory Database, used under CC BY 4.0.