Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ollama/ollama
  4. ›
  5. CVE-2024-8063

CVE-2024-8063: Ollama Divide by Zero Vulnerability

March 20, 2025 (updated May 15, 2025)

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.

References

  • github.com/advisories/GHSA-2xf2-gjm6-g2c6
  • github.com/ollama/ollama
  • github.com/ollama/ollama/issues/8020
  • huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9
  • nvd.nist.gov/vuln/detail/CVE-2024-8063

Code Behaviors & Features

Detect and mitigate CVE-2024-8063 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.3.3

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-369: Divide By Zero

Source file

go/github.com/ollama/ollama/CVE-2024-8063.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 14 Dec 2025 12:18:37 +0000.