{"cve":"CVE-2024-39720","nvd":{"published":"2024-10-31T20:15:04.877","modified":"2026-06-17T07:42:32.303","status":"Analyzed","description":"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).","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-125"],"references":["https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417","https://oligo.security/blog/more-models-more-probllms"],"products":["ollama:ollama"],"source":"nvd","synced_at":"2026-10-19T21:56:33.105311382+00:00"},"epss":{"cve":"CVE-2024-39720","score":0.02443,"percentile":0.84322,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-95j2-w8x7-hm88","url":"https://osv.dev/vulnerability/GHSA-95j2-w8x7-hm88","summary":"Ollama Out-of-bounds Read","modified":"2024-12-12T18:01:01Z","packages":[{"ecosystem":"Go","name":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","ranges":["<0.1.46"],"fixed":["0.1.46"]}]},{"id":"GO-2024-3245","url":"https://osv.dev/vulnerability/GO-2024-3245","summary":"Ollama Out-of-bounds Read in github.com/ollama/ollama","modified":"2026-03-03T04:56:00.160621Z","packages":[{"ecosystem":"Go","name":"github.com/ollama/ollama","purl":"pkg:golang/github.com/ollama/ollama","ranges":["<0.1.46"],"fixed":["0.1.46"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}