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.3

Type: local

Agent: unix

Published: 10/22/2024

Updated: 3/27/2025

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

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

CVSS Score Source: CVE-2024-7773

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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

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

Vulnerability Information

CPE: cpe:/a:ollama:ollama

Required KB Items: installed_sw/ollama

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 6/27/2024

Vulnerability Publication Date: 7/7/2024

Reference Information

CVE: CVE-2024-7773