---
id: CVE-2024-8063
aliases:
  - GHSA-2xf2-gjm6-g2c6
  - GO-2025-3689
title: Ollama Divide by Zero Vulnerability
summary: Ollama Divide by Zero Vulnerability
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
vendor: ollama
product: github.com/ollama/ollama
ecosystem: go
affected:
  - github.com/ollama/ollama <= 0.3.3
published: '2025-03-20'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:56.688692172Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-2xf2-gjm6-g2c6'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-8063'
  - url: 'https://github.com/ollama/ollama/issues/8020'
  - url: 'https://github.com/ollama/ollama'
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml
  - url: 'https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9'
tags:
  - osv
  - go
epss: 0.0063
epssPercentile: 0.48848
ingestedAt: '2026-09-12T03:13:01.747Z'
---

## Overview

A divide by zero vulnerability exists in ollama/ollama version v0.3.3. The vulnerability occurs when importing GGUF models with a crafted type for `block_count` in the Modelfile. This can lead to a denial of service (DoS) condition when the server processes the model, causing it to crash.

## Affected packages

- `github.com/ollama/ollama <= 0.3.3`

## Remediation

Refer to the advisory for the patched release.
