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.
https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9
Published: 2025-03-20
Updated: 2025-05-13
Named Vulnerability: GO-2025-3689Named Vulnerability: GHSA-2xf2-gjm6-g2c6
Base Score: 7.8
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C
Severity: High
Base Score: 7.5
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity: High
EPSS: 0.00643