Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path, and thus mishandles the TestGetBlobsPath test cases such as fewer than 64 hex digits, more than 64 hex digits, or an initial ../ substring.
https://thehackernews.com/2024/11/critical-flaws-in-ollama-ai-framework.html
https://www.scworld.com/brief/new-ollama-rce-vulnerability-immediately-fixed
Published: 2024-05-31
Updated: 2025-05-01
Named Vulnerability: ProbllamaNamed Vulnerability: GO-2024-2901Named Vulnerability: GHSA-8hqg-whrw-pv92
Base Score: 9
Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:C/A:C
Severity: High
Base Score: 8.8
Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity: High
EPSS: 0.89633