Division by zero Affecting github.com/ollama/ollama/fs/ggml package, versions <0.6.3-rc1


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.06% (15th 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-GITHUBCOMOLLAMAOLLAMAFSGGML-9667337
  • published6 Apr 2025
  • disclosed20 Mar 2025
  • credit0gur1

Introduced: 20 Mar 2025

NewCVE-2024-8063  (opens in a new tab)
CWE-369  (opens in a new tab)

How to fix?

Upgrade github.com/ollama/ollama/fs/ggml to version 0.6.3-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Division by zero when handling an invalid unknown.block_count type in a Modelfile. An attacker can cause the application to crash by importing a malicious GGUF.

CVSS Base Scores

version 4.0
version 3.1