CVE-2024-45436 json
Ollama can extract members of a ZIP archive outside of the parent directory
published 2024-08-29 2 y ago modified 2026-06-17 4 mo ago also GHSA-846m-99qv-67mg , GO-2024-3104 , EUVD-2024-2532
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
extractFromZipFile in model.go in Ollama before 0.1.47 can extract members of a ZIP archive outside of the parent directory.
Patch / fix
- go github.com/ollama/ollama 0.1.47
- ollama ollama 0.1.47
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20241213T205935-1.1
opensuse advisories openSUSE-SU-2024:14599-1
- github.com/ollama/ollama@123a722 commit
- github.com/ollama/ollama/compare/v0.1.46...v0.1.47 patch
- github.com/ollama/ollama#5314 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
2.56% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/ollama/ollama | <0.1.47 |
0.1.47 |
Affected products
- ollama ollama
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/ollama/ollama/pull/5314
web, patch
-
github.com
/ollama/ollama/compare/v0.1.46...v0.1.47
web, patch
-
github.com
/ollama/ollama/commit/123a722a6f541e300bc8e34297ac378ebe23f527
web, patch
-
nvd.nist.gov
/vuln/detail/CVE-2024-45436
advisory
-
github.com
/ollama/ollama
package
-
github.com
/advisories/GHSA-846m-99qv-67mg
advisory
Sources
- CVE List CVE-2024-45436
- GitHub Advisory GHSA-846m-99qv-67mg
- NVD CVE-2024-45436
- OSV GO-2024-3104
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.