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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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 IDSNYK-GOLANG-GITHUBCOMOLLAMAOLLAMASERVER-8322000
  • published1 Nov 2024
  • disclosed31 Oct 2024
  • creditUnknown

Introduced: 31 Oct 2024

CVE-2024-39720  (opens in a new tab)
CWE-125  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade github.com/ollama/ollama/server 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