HighGHSA-95j2-w8x7-hm88CVE-2024-39720GO-2024-3245

Ollama Out-of-bounds Read

Published 31 Oct 2024 · Updated 12 Dec 2024

Is your project on an affected github.com/ollama/ollama?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<0.1.46
Fixed in
0.1.46
Update to the fixed version for your release line, for example:go get github.com/ollama/ollama@v0.1.46

Details

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

Is GHSA-95j2-w8x7-hm88 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/ollama/ollama, and gives you the command that fixes it.

More advisories for github.com/ollama/ollama

  • LowCVE-2026-7020Ollama is Vulnerable to Path Traversal in github.com/ollama/ollama · 27 Jul 2026
  • LowCVE-2026-7482Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader in github.com/ollama/ollama · 27 Jul 2026
  • HighCVE-2026-7482Ollama contains a heap out-of-bounds read vulnerability in the GGUF model loader · 4 May 2026
  • LowCVE-2026-7020Ollama is Vulnerable to Path Traversal · 26 Apr 2026
  • LowCVE-2025-63389Ollama has missing authentication enabling attackers to perform model management operations in github.com/ollama/ollama · 14 Jan 2026
  • CriticalCVE-2025-63389Ollama Platform has missing authentication enabling attackers to perform model management operations · 18 Dec 2025
All 30 advisories for github.com/ollama/ollama

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.