{"schema_version":"1.7.3","id":"GHSA-95j2-w8x7-hm88","published":"2024-10-31T21:31:45Z","modified":"2024-12-12T18:01:01Z","aliases":["CVE-2024-39720","GO-2024-3245"],"summary":"Ollama Out-of-bounds Read","details":"An issue was discovered in Ollama before 0.1.46. An attacker can use two HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header. By leveraging a custom Modelfile that includes a FROM statement pointing to the attacker-controlled blob file, the attacker can crash the application through the CreateModel route, leading to a segmentation fault (signal SIGSEGV: segmentation violation).","affected":[{"package":{"name":"github.com/ollama/ollama","ecosystem":"Go","purl":"pkg:golang/github.com/ollama/ollama"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.1.46"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/10/GHSA-95j2-w8x7-hm88/GHSA-95j2-w8x7-hm88.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39720"},{"type":"PACKAGE","url":"https://github.com/ollama/ollama"},{"type":"WEB","url":"https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417"},{"type":"WEB","url":"https://oligo.security/blog/more-models-more-probllms"},{"type":"WEB","url":"https://oligosecurity.webflow.io/blog/more-models-more-probllms"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-3245"}],"database_specific":{"cwe_ids":["CWE-125"],"github_reviewed":true,"github_reviewed_at":"2024-11-04T23:22:24Z","nvd_published_at":"2024-10-31T20:15:04Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}