Advisory

GHSA-9gcr-28rp-cc24

Also known as: CVE-2025-0317, GO-2025-3559

Summary

Ollama Divide By Zero vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-03-20 12:32 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

github.com/ollama/ollama

Go · All systems

Affected

  • introduced 0, last affected 0.3.14 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences