Ollama < 0.4.0 Remote Code Execution

critical Web App Scanning Plugin ID 114576

Synopsis

Ollama < 0.4.0 Remote Code Execution

Description

According to the self-reported version in its response header, the version of Ollama hosted on the remote web server is < 0.4.0. It is, therefore, affected by a Remote Code Execution.

Note that the scanner has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Ollama version 0.4.0 or later.

See Also

https://github.com/ollama/ollama/commit/123a722a6f541e300bc8e34297ac378ebe23f527

https://huntr.com/bounties/aeb82e05-484f-4431-9ede-25a3478d8dbb

Plugin Details

Severity: Critical

ID: 114576

Type: remote

Published: 1/28/2025

Updated: 1/28/2025

Scan Template: basic, full, pci, scan

Risk Information

CVSS v2

Risk Factor: High

Base Score: 9.4

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

CVSS Score Source: Tenable

CVSS v3

Risk Factor: Critical

Base Score: 9.1

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

CVSS Score Source: Tenable

Vulnerability Information

CPE: cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*

Exploit Ease: No known exploits are available

Patch Publication Date: 10/22/2024

Vulnerability Publication Date: 10/22/2024

Reference Information

CVE: CVE-2024-7773