Skip to main content
Public proof of conceptFix available

CVE-2025-0317

A public proof of concept exists; no exploitation attested.

  • Published2025-03-20
  • WeaknessCWE-369

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2025-03-2010:15CVE publishedNVD

Versions per branch

OSV · NVD
ollama/ollama
BranchAffectedFixed in
0.3≤ 0.3.14no fix published
Ollama
BranchAffectedFixed in
0.3≤ 0.3.14no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • ollama/ollama
    Affected
    • ≤ latestno fix statedcustom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-03-20

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • govulncheck-vulndbopenSUSE:Tumbleweedall versions · fixed in 0.0.20250331T171002-1.1
  • k8sgptWolfiall versions · fixed in 0
  • k8sgptChainguardall versions · fixed in 0and 1 other package
  • modsWolfiall versions · fixed in 1.8.1-r14
  • modsChainguardall versions · fixed in 1.8.1-r14
  • ollamaMinimOSall versions · fixed in 0and 1 other package

Vendor advisories

  • CVE-2025-0317 Red Hat Product Security

    ollama: Divide By Zero in ollama/ollama

Full record on NVD

Fix

No fix published by the sources we read yet. NVD record

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-03-20
  • NVDCVSS 3.17.5read 2026-10-23
  • CNACVSS 3.07.5known since 2026-10-23
  • CNAweakness (CWE)CWE-369known since 2026-10-23
  • NVDweakness (CWE)CWE-369read 2026-10-23
  • FIRST EPSSEPSS score14.5 %read 2026-11-09
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2025-03-22

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2025-03-20
Last Modified
2026-06-17
NVD status
Analyzed
GitHub Advisory
GHSA-9gcr-28rp-cc24

Frequently asked questions

What is CVE-2025-0317?

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.

Is CVE-2025-0317 actively exploited?

A proof-of-concept exploit exists for CVE-2025-0317, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2025-0317?

CVE-2025-0317 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running ollama/ollama? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record