Ollama < 0.1.34 Improper Input Validation

medium Nessus Plugin ID 200185

Synopsis

The Ollama instance installed on the remote host is affected by an improper input validation vulnerability.

Description

The version of Ollama installed on the remote host is prior to 0.1.34. It is, therefore, affected by an improper input validation vulnerability. 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.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Ollama version 0.1.34 or later.

See Also

https://github.com/advisories/GHSA-8hqg-whrw-pv92

Plugin Details

Severity: Medium

ID: 200185

File Name: ollama_CVE-2024-37032.nasl

Version: 1.4

Type: local

Agent: unix

Family: Misc.

Published: 6/7/2024

Updated: 11/8/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 2.9

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2024-37032

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: x-cpe:/a:ollama:ollama

Required KB Items: installed_sw/ollama

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 5/31/2024

Vulnerability Publication Date: 5/31/2024

Reference Information

CVE: CVE-2024-37032

IAVB: 2024-B-0072-S