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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2025-03-20 · Modified: 2025-03-20
- Aliases: CGA-gx52-g9g3-4j59, CGA-rc39-jr8f-584p, CGA-rwx7-vqxr-c26r, CGA-wm79-fwpq-pxvp, GHSA-9gcr-28rp-cc24, GO-2025-3559, CGA-3vfj-mcx7-577g, CGA-6rh8-4wch-x4g4
- Record: https://cvemate.com/vulnerability/CVE-2025-0317 · JSON: https://cvemate.com/vulnerability/CVE-2025-0317/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 14.387%, percentile 96.726%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard k8sgpt (Chainguard): All versions (No fix recorded)
- chainguard mods (Chainguard): \< 1.8.1-r14
- chainguard ollama-fips (Chainguard): All versions (No fix recorded)
- wolfi k8sgpt (Wolfi): All versions (No fix recorded)
- wolfi mods (Wolfi): \< 1.8.1-r14
- github.com/ollama ollama (Go): ≤ 0.3.14 \| All versions (No fix recorded)
- ollama ollama: ≤ 0.3.14
- ollama ollama/ollama: ≥ unspecified, ≤ latest

## References

- <https://huntr.com/bounties/a9951bca-9bd8-49b2-b143-4cd4219f9fa0>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0317.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-0317>
- <https://github.com/ollama/ollama>
- <https://github.com/advisories/GHSA-9gcr-28rp-cc24>

---

Data as of 2026-12-05T18:39:36.300Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
