Live threats

All CVEs / Ollama

CVE-2024-39720Ollama

High 8.2 No auth needed

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Ollama.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
ollamaollama< 0.1.46

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.