# CVE-2025-0312: NULL Pointer Dereference 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): 0.64%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:10:53.551Z
- Modified: 2026-09-10T03:49:48.422Z
- Also known as: GHSA-p2wh-w96x-w232, GO-2025-3582
- Related: CGA-j73v-rw86-3rfp
- Weaknesses: CWE-476
- 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 create a customized GGUF model file that, when uploaded and created on the Ollama server, can cause a crash due to an unchecked null pointer dereference. This can lead to a Denial of Service (DoS) attack via remote network.

(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/522c87b6-a7ac-41b2-84f3-62fd58921f21> (exploit, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-0312> (advisory)
- <https://github.com/ollama/ollama> (package)
- <https://github.com/advisories/GHSA-p2wh-w96x-w232> (advisory)

## Sources

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

---

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