# CVE-2024-8063: Ollama divide by zero vulnerability in GGUF model import

Source: https://junglewise.ai/threats/cve-2024-8063-ollama-divide-by-zero-vulnerability-in-gguf-model-import  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-03-20. Updated: 2026-06-06  
License: CC BY 4.0 with a link back

CVE-2024-8063 · Severity: high · CVSS 7.5 · Published 2025-03-20

Ollama is a popular platform for running large language models locally. A vulnerability in how it processes certain model files allows an attacker to crash the Ollama server by providing a specially crafted model configuration. This results in a denial of service, preventing users from accessing or using the AI service until it is restarted.

Technologies: [github.com/ollama/ollama (Go)](https://junglewise.ai/threats/technologies/github-com-ollama-ollama), [Ollama](https://junglewise.ai/threats/technologies/ollama), [ollama (PyPI)](https://junglewise.ai/threats/technologies/pypi-ollama). Vendors: [Go](https://junglewise.ai/threats/vendors/go), [Ollama](https://junglewise.ai/threats/vendors/ollama), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-8063 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-8063 being exploited in the wild.

**How severe is CVE-2024-8063?** High severity, with a CVSS score of 7.5, published 20 March 2025.

**Which products and versions are affected?** github.com/ollama/ollama (Go) <= 0.3.3, SEMVER:introduced=0, SEMVER:introduced=0,last_affected=0.3.3; Ollama <= 0.3.3; ollama (PyPI) ECOSYSTEM:introduced=0,last_affected=0.3.3.

**Is there a fix for CVE-2024-8063?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2024-8063 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2024-8063?** Check whether you run github.com/ollama/ollama (Go), Ollama or ollama (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

A divide-by-zero vulnerability (CWE-369) exists in Ollama version 0.3.3 and earlier. The flaw is triggered during the import process of GGUF models when a Modelfile contains a crafted value for the 'block_count' parameter. When the server attempts to process this malformed model, it performs a division by zero, leading to an immediate application crash. This can be exploited by a remote attacker without authentication to cause a denial of service (DoS) condition. While the advisory lists version 0.3.3 as affected, later community reports suggest the issue may persist in subsequent versions.

## Affected products

- Ollama Ollama <= 0.3.3

## Identifiers

- CVE-2024-8063
- GHSA-2xf2-gjm6-g2c6
- GO-2025-3689
- PYSEC-2025-144

## Timeline

- 2025-03-20: disclosed: NVD and GitHub Advisory published
- 2024-12-10: other: Issue reported on Ollama GitHub repository

## References

- [https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9](https://huntr.com/bounties/fd8e1ed6-21d2-4c9e-8395-2098f11b7db9)
- [https://github.com/ollama/ollama/issues/8020](https://github.com/ollama/ollama/issues/8020)
- [https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml](https://github.com/pypa/advisory-database/tree/main/vulns/ollama/PYSEC-2025-144.yaml)

## Related threats

- [Ollama server-side request forgery in Pull API](https://junglewise.ai/threats/cve-2026-108836-a-vulnerability-has-been-found-in-ollama-up-to-0-34-1-the)
- [Ollama authorization bypass in experimental agent Bash tool approval](https://junglewise.ai/threats/cve-2026-102697-ollama-versions-0-14-0-before-0-31-2-contain-an-incorrect)
- [Ollama integer overflow in GGUF decoder](https://junglewise.ai/threats/cve-2026-86289-ollama-integer-overflow-in-gguf-decoder)
- [Ollama unvalidated redirect in model blob downloads](https://junglewise.ai/threats/cve-2026-85180-ollama-unvalidated-redirect-in-model-blob-downloads)
- [Ollama uncontrolled memory allocation in GGUF metadata parser](https://junglewise.ai/threats/cve-2026-65315-ollama-uncontrolled-memory-allocation-in-gguf-metadata-parser)
