{"id":"CVE-2024-39720","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).","aliases":["GHSA-95j2-w8x7-hm88","GO-2024-3245"],"modified":"2026-03-09T23:58:23.094483Z","published":"2024-10-31T20:15:04.877Z","related":["SUSE-SU-2024:3950-1","openSUSE-SU-2024:0350-1","openSUSE-SU-2024:14452-1"],"references":[{"type":"WEB","url":"https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417"},{"type":"EVIDENCE","url":"https://oligo.security/blog/more-models-more-probllms"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ollama/ollama","events":[{"introduced":"0"},{"fixed":"cb42e607c5cf4d439ad4d5a93ed13c7d6a09fc34"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"0.1.46"}]}}],"versions":["v0.0.1","v0.0.10","v0.0.11","v0.0.12","v0.0.13","v0.0.14","v0.0.15","v0.0.16","v0.0.17","v0.0.18","v0.0.19","v0.0.2","v0.0.20","v0.0.21","v0.0.3","v0.0.4","v0.0.5","v0.0.6","v0.0.7","v0.0.8","v0.0.9","v0.1.0","v0.1.1","v0.1.10","v0.1.11","v0.1.12","v0.1.13","v0.1.14","v0.1.15","v0.1.16","v0.1.17","v0.1.18","v0.1.19","v0.1.2","v0.1.20","v0.1.21","v0.1.22","v0.1.23","v0.1.24","v0.1.25","v0.1.26","v0.1.27","v0.1.28","v0.1.29","v0.1.3","v0.1.30","v0.1.32","v0.1.32-rc1","v0.1.32-rc2","v0.1.33","v0.1.33-rc1","v0.1.33-rc2","v0.1.33-rc3","v0.1.33-rc4","v0.1.33-rc5","v0.1.33-rc6","v0.1.33-rc7","v0.1.34","v0.1.34-rc1","v0.1.35","v0.1.35-rc1","v0.1.36","v0.1.37","v0.1.38","v0.1.39","v0.1.39-rc1","v0.1.39-rc2","v0.1.4","v0.1.40","v0.1.40-rc1","v0.1.41","v0.1.42","v0.1.43","v0.1.44","v0.1.45","v0.1.45-rc1","v0.1.45-rc2","v0.1.45-rc3","v0.1.45-rc4","v0.1.45-rc5","v0.1.5","v0.1.6","v0.1.7","v0.1.8","v0.1.9"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-39720.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"}]}