CVE-2024-39720
HIGH 8.2CVSS 3.1Ollama Out-of-bounds Read
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).
- Published
- 31 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-125
- Also known as
- GHSA-95j2-w8x7-hm88GO-2024-3245
- Sources
- NVDJSONOSV GHSA-95j2-w8x7-hm88JSONOSV GO-2024-3245JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ollama | ollamacpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* |
< 0.1.46 | 0.1.46 |
| OSV | Go | github.com/ollama/ollama | < 0.1.46 | 0.1.46 |
References
- https://github.com/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131L417 · Product, WEB
- https://oligo.security/blog/more-models-more-probllms · Exploit, Third Party Advisory, 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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 31 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Nov 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Oct 2024)