INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-45436

Ollama can extract members of a ZIP archive outside of the parent directory

CVE-2024-45436 ยท 2024-08-29 high

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

Source: GitHub Advisory Database, used under CC BY 4.0.