Ollama < 0.1.46 Multiples Vulnerabilities

high Web App Scanning Plugin ID 114578

Synopsis

Ollama < 0.1.46 Multiples Vulnerabilities

Description

According to the self-reported version in its response header, the version of Ollama hosted on the remote web server is < 0.1.46. It is, therefore, affected by a Multiples vulnerabilities :

- A Path Traversal in the api/push route that exposes which files exist on the server - An Out-Of-Band Read through HTTP requests to upload a malformed GGUF file containing just 4 bytes starting with the GGUF custom magic header

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

See Also

https://www.oligo.security/blog/more-models-more-probllms

Plugin Details

Severity: High

ID: 114578

Type: remote

Published: 1/28/2025

Updated: 1/28/2025

Scan Template: basic, full, pci, scan

Risk Information

VPR

Risk Factor: Medium

Score: 4.2

CVSS v2

Risk Factor: High

Base Score: 7.8

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

CVSS Score Source: CVE-2024-39720

CVSS v3

Risk Factor: High

Base Score: 8.2

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

CVSS Score Source: CVE-2024-39720

Vulnerability Information

CPE: cpe:2.3:a:ollama: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-39720, CVE-2024-39722