CVE-2024-37032

Published May 31, 2024

Last updated a year ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2024-37032 is a path traversal vulnerability affecting Ollama, an open-source framework designed for running large language models (LLMs) locally. This flaw, also known as "Probllama," exists in Ollama versions prior to 0.1.34. The vulnerability arises because Ollama fails to adequately validate the format of the "digest" parameter when it resolves model paths. This lack of validation allows an attacker to inject malicious path traversal sequences, such as `../`, into the digest value. By doing so, an attacker can escape the intended directories and manipulate file paths. This can lead to arbitrary file writes on the system, and in certain configurations, it can be exploited to achieve remote code execution.

Description
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.
Source
cve@mitre.org
NVD status
Analyzed
Products
ollama

Risk scores

CVSS 3.1

Type
Secondary
Base score
8.8
Impact score
5.9
Exploitability score
2.8
Vector string
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity
HIGH

Weaknesses

134c704f-9b21-4f2e-91b3-4a467353bcc0
CWE-22

Social media

Hype score
Not currently trending

Configurations