{"id":"CVE-2024-39720","published":"2024-10-31T00:00:00Z","modified":"2024-11-01T15:20:12Z","title":"An issue was discovered in Ollama before 0.1.46","vendor":null,"product":null,"tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.02443,"percentile":0.84709,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417","tags":[]},{"url":"https://oligo.security/blog/more-models-more-probllms","tags":[]}],"priority":{"score":22.7,"factors":[{"name":"EPSS percentile","points":16.94},{"name":"CVSS severity","points":5.74}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-01T15:18:50.666671Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/ollama/ollama","vulnerableRanges":["<0.1.46"],"patched":["0.1.46"],"from":["GHSA-95j2-w8x7-hm88","GO-2024-3245"],"provenance":"source"}],"summary":{"text":"The flaw is an out-of-bounds read in Ollama before version 0.1.46, triggered when the application parses a malformed GGUF model file. An attacker with network access and no authentication or user interaction can send two HTTP requests to upload a 4-byte file bearing the GGUF magic header and reference it from a crafted Modelfile's FROM statement via the CreateModel route, crashing the application with a segmentation fault.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:41:06Z"},"euvd":{"id":"EUVD-2024-3003","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-28224","published":"2024-04-08","fixed":"0.1.29","kev":false},{"cve":"CVE-2024-37032","published":"2024-05-31","fixed":"0.1.34","kev":false,"link":{"from":"CVE-2024-37032","to":"CVE-2024-39720","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/ollama/ollama","fromFixed":"0.1.34","toFixed":"0.1.46","daysApart":153}]}},{"cve":"CVE-2025-44779","published":"2025-08-07","fixed":"0.1.34","kev":false},{"cve":"CVE-2024-39720","published":"2024-10-31","fixed":"0.1.46","kev":false},{"cve":"CVE-2024-45436","published":"2024-08-29","fixed":"0.1.47","kev":false},{"cve":"CVE-2024-12886","published":"2025-03-20","fixed":"0.4.0-ci1","kev":false},{"cve":"CVE-2026-7482","published":"2026-05-04","fixed":"0.17.1","kev":false}],"package":"Go:github.com/ollama/ollama"}}