CVE-2025-0317
HIGH 7.5CVSS 3.1Ollama Divide By Zero vulnerability
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.
- Published
- 20 Mar 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-369
- Also known as
- GHSA-9gcr-28rp-cc24GO-2025-3559
- Sources
- NVDJSONOSV GHSA-9gcr-28rp-cc24JSONOSV GO-2025-3559JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ollama | ollamacpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* |
<= 0.3.14 | |
| OSV | Go | github.com/ollama/ollama | <= 0.3.14 | |
| OSV | Go | github.com/ollama/ollama | all versions |
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
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 31 Mar 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 20 Mar 2025)