{"id":"CVE-2024-45436","published":"2024-08-29T00:00:00Z","modified":"2024-08-29T14:16:30Z","title":"extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent…","vendor":null,"product":null,"tier":"tail","description":{"text":"extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.03799,"percentile":0.90767,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ollama/ollama/pull/5314","tags":[]},{"url":"https://github.com/ollama/ollama/compare/v0.1.46...v0.1.47","tags":[]}],"priority":{"score":29.5,"factors":[{"name":"EPSS percentile","points":18.15},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.37}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-04-17","earliestUrl":"https://github.com/srcx404/CVE-2024-45436","repos":[{"name":"srcx404/CVE-2024-45436","url":"https://github.com/srcx404/CVE-2024-45436","stars":6,"created":"2025-04-17"}]},"first":{"date":"2025-04-17","source":"PoC-in-GitHub","url":"https://github.com/srcx404/CVE-2024-45436"},"provenance":"source"},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-08-29T14:16:22.466558Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.1.47"],"patched":["0.1.47"],"from":["GHSA-846m-99qv-67mg","GO-2024-3104"],"provenance":"source"}],"summary":{"text":"The flaw is an improper limitation of a pathname to a restricted directory in the extractFromZipFile function in model.go of Ollama, affecting versions before 0.1.47. The function can extract members of a ZIP archive to locations outside the intended parent directory. An attacker can use a crafted ZIP archive to write files outside the expected extraction directory, reachable over the network with no privileges and no user interaction required. The Ollama product page does not specify further configuration requirements beyond the affected version range.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:18:20Z"},"euvd":{"id":"EUVD-2024-2532","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-ollama-cve-2024-45436","children":[{"from":"CVE-2024-45436","to":"CVE-2026-102697","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["cmd/cmd.go"],"commits":["https://github.com/ollama/ollama/commit/123a722a6f541e300bc8e34297ac378ebe23f527","https://github.com/ollama/ollama/commit/a2b3a5e9a3956bc0700a8505580c11faf4da09b5"],"basis":"rarely changed file"}]}]}}