{"id":"CVE-2024-39720","aliases":["CVE-2024-39720","GHSA-95j2-w8x7-hm88","GO-2024-3245"],"related":[],"kind":"vulnerability","state":"published","title":"Ollama Out-of-bounds Read","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"en","text":"Ollama Out-of-bounds Read in github.com/ollama/ollama","format":"markdown","source":"go"},{"lang":"es","text":"Se descubrió un problema en Ollama antes de la versión 0.1.46. Un atacante puede usar dos solicitudes HTTP para cargar un archivo GGUF malformado que contenga solo 4 bytes comenzando con el encabezado mágico personalizado GGUF. Al aprovechar un Modelfile personalizado que incluye una declaración FROM que apunta al archivo blob controlado por el atacante, el atacante puede bloquear la aplicación a través de la ruta CreateModel, lo que genera una segmentation fault (señal SIGSEGV: segmentation violation).","source":"nvd"}],"published":"2024-10-31T00:00:00.000Z","modified":"2026-06-17T07:42:32.303Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"0.1.46","status":"affected"}],"vendor":"ollama","product":"ollama","cpe":"cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.46"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.1.46"}],"ecosystem":"Go","package":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","source":"go"},{"ranges":[{"status":"affected","fixed":"0.1.46"}],"vendor":"ollama","product":"ollama","cpe":"cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417","tags":["product","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://oligo.security/blog/more-models-more-probllms","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39720","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ollama/ollama","tags":["package"],"sources":["ghsa"]},{"url":"https://oligosecurity.webflow.io/blog/more-models-more-probllms","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3245","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-95j2-w8x7-hm88","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-11-01T15:18:50.666Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-39720","url":"https://www.cve.org/CVERecord?id=CVE-2024-39720","licence":"CVE Terms of Use","modified":"2024-11-01T15:20:12.939Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-95j2-w8x7-hm88","url":"https://github.com/advisories/GHSA-95j2-w8x7-hm88","licence":"CC-BY-4.0","modified":"2024-12-12T18:01:01.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3245","url":"https://pkg.go.dev/vuln/GO-2024-3245","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:00.160Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-39720","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-39720","licence":"Public domain","modified":"2026-06-17T07:42:32.303Z"}],"updatedAt":"2026-11-25T22:58:47.562Z","epss":{"score":0.02443,"percentile":0.8479,"date":"2026-12-02T12:00:21.000Z"}}