Skip to content
OpenAdvisories
High · 8.2 CVE-2024-39720 EUVD-2024-3003GHSA-95j2-w8x7-hm88GO-2024-3245

Ollama Out-of-bounds Read

Published Oct 31, 2024 · Updated Nov 1, 2024 · Assigned by mitre

Description

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

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1
SLES 15 SP5 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 12 govulncheck-vulndb 0.0.20241104T154416-5.1 openSUSE-SU-2024:0350-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20241101T215616-1.1 openSUSE-SU-2024:14452-1
openSUSE Tumbleweed zed 1.24.2-1.1 openSUSE-SU-2026:12355-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1
openSUSE Leap 15.5 govulncheck-vulndb 0.0.20241104T154416-150000.1.12.1 SUSE-SU-2024:3950-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/ollama/ollama < 0.1.46 0.1.46 GHSA-95j2-w8x7-hm88

Advisories 4

References