Back

HIGH

Divide by Zero in ollama/ollama

Published Mar 20, 2025

Description

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 products

Remediation

Red Hat statement

Ansible LightSpeed does not use Ollama server. The library is included in the image just for local development or testing.

Red Hat mitigation

Implementing an input validation to check a valid model file formats before processing would help to mitigate this issue.

Weaknesses (1)

References (9)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner @huntr_ai
Published Mar 20, 2025
Updated Mar 20, 2025
Reserved Aug 21, 2024
CISA Vulnrichment
Updated Mar 20, 2025
NVD
Status Analyzed
Modified Jun 17, 2026
Red Hat
Severity Important
Public date Mar 20, 2025
ENISA EUVD
Assigner @huntr_ai
Published Mar 20, 2025
Updated Mar 20, 2025
Exploited since n/a
EUVD-2025-6935 GHSA-2XF2-GJM6-G2C6