Out-of-bounds Read Affecting github.com/ollama/ollama/llm package, versions <0.1.46


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-GOLANG-GITHUBCOMOLLAMAOLLAMALLM-8321999
  • published 1 Nov 2024
  • disclosed 31 Oct 2024
  • credit Unknown

How to fix?

Upgrade github.com/ollama/ollama/llm to version 0.1.46 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read through the CreateModel route. An attacker can cause the application to crash by sending two HTTP requests to upload a malformed GGUF file that starts with a custom magic header and leverages a Modelfile with a FROM statement pointing to an attacker-controlled blob file.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
8.8 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    High
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None