# CVE-2025-0317: Divide By Zero in ollama/ollama

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 14.4%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:02.331Z
- Modified: 2026-09-10T03:49:48.410Z
- Also known as: GHSA-9gcr-28rp-cc24, GO-2025-3559
- Related: CGA-q2xv-4cj5-h5j2
- Weaknesses: CWE-369
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## Description

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.

(As written by CVE List.)

## Affected

- ollama ollama/ollama: from unspecified up to latest
- github.com/ollama/ollama (Go): up to 0.3.14; all versions
- ollama ollama: up to 0.3.14

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/a9951bca-9bd8-49b2-b143-4cd4219f9fa0> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-0317> (advisory)
- <https://github.com/ollama/ollama> (package)
- <https://github.com/advisories/GHSA-9gcr-28rp-cc24> (advisory)

## Sources

- CVE List: [CVE-2025-0317](https://www.cve.org/CVERecord?id=CVE-2025-0317), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-9gcr-28rp-cc24](https://github.com/advisories/GHSA-9gcr-28rp-cc24), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-3559](https://pkg.go.dev/vuln/GO-2025-3559), CC-BY-4.0, modified 2026-06-30
- NVD: [CVE-2025-0317](https://nvd.nist.gov/vuln/detail/CVE-2025-0317), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-0317 · Whole record: https://cve.day/CVE-2025-0317.json · Rebuilt by cve.day 2026-11-25T22:58:55.378Z
