Ollama < 0.1.34 DoS

high Nessus Plugin ID 210501

Synopsis

The Ollama instance installed on the remote host is affected by a denial of service vulnerability.

Description

The version of Ollama installed on the remote host is prior to 0.1.34. It is, therefore, affected by a denial-of-service vulnerability:

- An issue was discovered in Ollama before 0.1.34. The CreateModelHandler function uses os.Open to read a file until completion. The req.Path parameter is user-controlled and can be set to /dev/random, which is blocking, causing the goroutine to run infinitely (even after the HTTP request is aborted by the client).

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://www.oligo.security/blog/more-models-more-probllms

Plugin Details

Severity: High

ID: 210501

File Name: ollama_0_1_134.nasl

Version: 1.3

Type: local

Agent: unix

Published: 11/7/2024

Updated: 11/8/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

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

CVSS Score Source: CVE-2024-39721

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

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

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

Vulnerability Information

CPE: cpe:/a:ollama:ollama

Required KB Items: installed_sw/ollama

Exploit Ease: No known exploits are available

Patch Publication Date: 10/31/2024

Vulnerability Publication Date: 10/31/2024

Reference Information

CVE: CVE-2024-39721

IAVB: 2024-B-0164