Advisory

GHSA-95j2-w8x7-hm88

Also known as: CVE-2024-39720, GO-2024-3245

Summary

Ollama Out-of-bounds Read

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2024-10-31 21:31 UTC
Modified
2024-12-12 18:01 UTC

Affected packages and fixes

github.com/ollama/ollama

Go · All systems

Affected

  • introduced 0, fixed 0.1.46 (semver)

Fixed versions

0.1.46

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences