# CVE-2025-0312: NULL Pointer Dereference 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-676v-g96f-q39r, CGA-g846-jm37-x382, CGA-v46r-wvgc-qh9j, CGA-v92c-f9jx-fj52, GHSA-p2wh-w96x-w232, GO-2025-3582, CGA-7fv3-j4qg-cqx5, CGA-p63g-6hgw-chmx
- Record: https://cvemate.com/vulnerability/CVE-2025-0312 · JSON: https://cvemate.com/vulnerability/CVE-2025-0312/json

## Description

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

## 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: 0.639%, percentile 52.066%, 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/522c87b6-a7ac-41b2-84f3-62fd58921f21>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/0xxx/CVE-2025-0312.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-0312>
- <https://github.com/ollama/ollama>
- <https://github.com/advisories/GHSA-p2wh-w96x-w232>

---

Data as of 2026-12-05T18:17:26.935Z. 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
