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

CVE-2025-0317: Ollama Divide By Zero vulnerability

March 20, 2025 (updated March 22, 2025)

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model file on the Ollama server. This can lead to a division by zero error in the ggufPadding function, causing the server to crash and resulting in a Denial of Service (DoS) attack.

References

  • github.com/advisories/GHSA-9gcr-28rp-cc24
  • github.com/ollama/ollama
  • huntr.com/bounties/a9951bca-9bd8-49b2-b143-4cd4219f9fa0
  • nvd.nist.gov/vuln/detail/CVE-2025-0317

Code Behaviors & Features

Detect and mitigate CVE-2025-0317 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.14

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.0/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-2025-0317.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 13 May 2025 00:14:39 +0000.