Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/ollama/ollama
  4. ›
  5. CVE-2025-0312

CVE-2025-0312: Ollama Denial of Service (DoS) via Null Pointer Dereference

March 20, 2025 (updated March 28, 2025)

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.

References

  • github.com/advisories/GHSA-p2wh-w96x-w232
  • github.com/ollama/ollama
  • huntr.com/bounties/522c87b6-a7ac-41b2-84f3-62fd58921f21
  • nvd.nist.gov/vuln/detail/CVE-2025-0312

Code Behaviors & Features

Detect and mitigate CVE-2025-0312 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.3.14

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-476: NULL Pointer Dereference

Source file

go/github.com/ollama/ollama/CVE-2025-0312.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:59 +0000.