Ollama < 0.3.13 RCE

critical Nessus Plugin ID 209520

Synopsis

The Ollama instance installed on the remote host is affected by a remote code execution vulnerability.

Description

The version of Ollama installed on the remote host is prior to 0.3.13. It is, therefore, affected by a remote code execution vulnerability. Ollama before 0.3.13 has a ZipSlip vulnerability that could allow an attacker to write arbitrary files to the file system. Therefore, an attacker can achieve remote code execution by creating /etc/ld.so.preload and vuln.so through a malicious zip file (application/zip).

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.3.13 or later.

See Also

http://www.nessus.org/u?57d43e77

http://www.nessus.org/u?e3ea2708

Plugin Details

Severity: Critical

ID: 209520

File Name: ollama_CVE-2024-7773.nasl

Version: 1.2

Type: local

Agent: unix

Published: 10/22/2024

Updated: 10/23/2024

Supported Sensors: Nessus Agent, Nessus

Risk Information

CVSS v2

Risk Factor: High

Base Score: 9.4

Temporal Score: 7

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

CVSS Score Source: CVE-2024-7773

CVSS v3

Risk Factor: Critical

Base Score: 9.1

Temporal Score: 7.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/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: 6/27/2024

Vulnerability Publication Date: 7/7/2024

Reference Information

CVE: CVE-2024-7773