# CVE-2024-39720: Ollama Out-of-bounds Read

- Severity: High 8.2 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.44%, higher than 84% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-31T00:00:00.000Z
- Modified: 2026-06-17T07:42:32.303Z
- Also known as: GHSA-95j2-w8x7-hm88, GO-2024-3245
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ollama ollama: before 0.1.46
- github.com/ollama/ollama (Go): before 0.1.46

## Every score

- CISA-ADP: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://oligo.security/blog/more-models-more-probllms> (exploit, third-party-advisory, web)
- <https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39720> (advisory)
- <https://github.com/ollama/ollama> (package)
- <https://oligosecurity.webflow.io/blog/more-models-more-probllms> (web)
- <https://pkg.go.dev/vuln/GO-2024-3245> (web)
- <https://github.com/advisories/GHSA-95j2-w8x7-hm88> (advisory)

## Sources

- CVE List: [CVE-2024-39720](https://www.cve.org/CVERecord?id=CVE-2024-39720), CVE Terms of Use, modified 2024-11-01
- GitHub Advisory Database: [GHSA-95j2-w8x7-hm88](https://github.com/advisories/GHSA-95j2-w8x7-hm88), CC-BY-4.0, modified 2024-12-12
- Go Vulnerability Database: [GO-2024-3245](https://pkg.go.dev/vuln/GO-2024-3245), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-39720](https://nvd.nist.gov/vuln/detail/CVE-2024-39720), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-39720 · Whole record: https://cve.day/CVE-2024-39720.json · Rebuilt by cve.day 2026-11-25T22:58:47.562Z
