CVE-2024-39720Ollama
High 8.2 No auth needed
Follow: this CVE · Ollama · Ollama We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.2
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 64
- Auth required
- No
- Published
- Oct 31, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-125
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
What happens
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).
What to do
- Apply the vendor's security update for Ollama.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/ollama/ollama |
< 0.1.46 |
0.1.46 |
go get github.com/ollama/ollama@v0.1.46 |
| Go | github.com/ollama/ollama |
< 0.1.46 |
0.1.46 |
go get github.com/ollama/ollama@v0.1.46 |
Per OSV / GitHub Advisories (GHSA-95j2-w8x7-hm88, GO-2024-3245). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ollama | ollama | < 0.1.46 |
Official advisories
- zed-1.24.2-1.1 on GA media · SUSE · openSUSE-SU-2026:12355-1 · Oct 29, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- oligo.security Exploit Third Party Advisory