CVE-2025-0312 json
NULL Pointer Dereference in ollama/ollama
published 2025-03-20 19 mo ago modified 2026-09-10 1 mo ago also GHSA-p2wh-w96x-w232 , GO-2025-3582 , EUVD-2025-6816
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250402T160203-1.1
opensuse advisories openSUSE-SU-2025:14970-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-0312 updated cvss 7.5
ollama: NULL Pointer Dereference in ollama/ollama
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/lightspeed-rhel8, ansible-automation-platform-26/lightspeed-rhel9, ansible-automation-platform-24/platform-resource-runner-rhel8, ansible-automation-platform-25/platform-resource-runner-rhel9, ansible-automation-platform-26/platform-resource-runner-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.64% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/522c87b6-a7ac-41b2-84f3-62fd58921f21 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/ollama/ollama | <=0.3.14 all versions |
no fix listed |
Affected products
- ollama ollama/ollama
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
References
-
huntr.com
/bounties/522c87b6-a7ac-41b2-84f3-62fd58921f21
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-0312
advisory
-
github.com
/ollama/ollama
package
-
github.com
/advisories/GHSA-p2wh-w96x-w232
advisory
Sources
- CVE List CVE-2025-0312
- GitHub Advisory GHSA-p2wh-w96x-w232
- NVD CVE-2025-0312
- OSV GO-2025-3582
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.