CVE-2024-39720 json
Ollama Out-of-bounds Read
published 2024-10-31 2 y ago modified 2026-06-17 4 mo ago also GHSA-95j2-w8x7-hm88 , GO-2024-3245 , EUVD-2024-3003
- cvss
- 8.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 84%
- public exploits
- 0
- none known
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).
Patch / fix
- go github.com/ollama/ollama 0.1.46
- ollama ollama 0.1.46
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, SLE Module for Package Hub 15 SP5, openSUSE Leap 15.6 +1 more 0.0.20241104T154416-150000.1.12.1
suse advisories SUSE-SU-2024:3950-1
- zed openSUSE Tumbleweed 1.24.2-1.1
- govulncheck-vulndb Package Hub 12 0.0.20241104T154416-5.1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20241101T215616-1.1
opensuse advisories openSUSE-SU-2026:12355-1openSUSE-SU-2024:0350-1openSUSE-SU-2024:14452-1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
2.44% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- oligo.security https://oligo.security/blog/more-models-more-probllms referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| CNA | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
| GitHub | 3.1 | 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/ollama/ollama | <0.1.46 |
0.1.46 |
Affected products
- ollama ollama
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
oligo.security
/blog/more-models-more-probllms
web, exploit, third-party-advisory
-
github.com
/ollama/ollama/compare/v0.1.45...v0.1.46#diff-782c2737eecfa83b7cb46a77c8bdaf40023e7067baccd4f806ac5517b4563131
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2024-39720
advisory
-
github.com
/ollama/ollama
package
-
oligosecurity.webflow.io
/blog/more-models-more-probllms
web
-
pkg.go.dev
/vuln/GO-2024-3245
web
-
github.com
/advisories/GHSA-95j2-w8x7-hm88
advisory
Sources
- CVE List CVE-2024-39720
- GitHub Advisory GHSA-95j2-w8x7-hm88
- NVD CVE-2024-39720
- OSV GO-2024-3245
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.