Skip to main content

Ollama EUVDEUVD-2026-72306

| CVE-2026-86289 LOW
Integer Overflow or Wraparound (CWE-190)
2026-09-07 VulDB GHSA-c2q9-58w2-gjg4
2.1
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft GGUF file with overflowing string/tensor length
  2. Delivery
    Host or inject file at reachable model source
  3. Exploit
    Victim loads model into Ollama
  4. Execution
    Integer overflow fires in GGUF decoder (readGGUFV1String)
  5. Persist
    Decoder crashes or aborts
  6. Impact
    Ollama availability disrupted until restart

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a user or automated process explicitly loads a malicious GGUF model file into Ollama - via ollama pull <model>, the REST API model endpoint, or direct filesystem import - where the GGUF file originates from or is controlled by the attacker. This is the UI:P (passive user interaction) precondition in the CVSS vector. Exploitation is further constrained to Ollama versions 0.31.0 and 0.31.1 only; all impact is availability-only (crash/abort with no code execution or data exposure indicated). Ollama instances that exclusively pull models from the official Ollama registry over verified TLS are at significantly reduced risk, as model poisoning requires either compromising the registry or performing a MITM substitution.

Impact

The CVSS 4.0 score of 2.1 (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P) correctly reflects a low-severity, availability-only impact: a model-loading crash with no confidentiality or integrity consequence. The E:P flag (exploit public) slightly elevates urgency, but the impact ceiling is VA:L - a service disruption recoverable by restart. Despite the 'Buffer Overflow' tag in the metadata, the patch evidence and CVSS alignment indicate the primary outcome is a parsing abort/crash, not exploitable heap corruption leading to code execution; this distinction is material. The UI:P requirement (a user or process must explicitly load the malicious model) is a meaningful real-world constraint - Ollama deployments that pull only from the official model registry over verified TLS are largely shielded. EPSS data was not provided in the input. No CISA KEV listing was identified; no public exploit confirmed active exploitation. Overall, this is a genuine but low-priority vulnerability primarily affecting operators who accept untrusted GGUF files.

Exploit ScenarioDerived

An attacker crafts a GGUF model file with an extremely large string length value (e.g., close to UINT64_MAX) embedded in the v1 metadata header and hosts it on a public or attacker-controlled model repository. When a developer or automated pipeline runs ollama pull or submits a model-load API request pointing to that source, the GGUF decoder's readGGUFV1String performs an unchecked int64 cast of the overflowing value, causing a crash or error that aborts Ollama until restarted. A public PoC demonstrating this behavior exists as GitHub issue #17033.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 07, 2026

Integer overflow vulnerabilities in Ollama's GGUF model decoder (versions 0.31.0-0.31.1) allow a remote attacker to crash the decoder by supplying a crafted GGUF model file containing malformed string lengths, tensor dimension counts, or array sizes. The overflow triggers in readGGUFV1String and related parsing functions in fs/ggml/gguf.go, causing Ollama to abort model loading and become temporarily unavailable. A public proof-of-concept exists (GitHub issue #17033) and a patch is available in v0.31.2-rc1; exploitation requires the target to load the malicious model file.

RemediationAI

Upgrade to Ollama v0.31.2-rc1 or any subsequent stable release incorporating commit 67b6a1c2d45321e0cb3c04a18073f9818de7724b (https://github.com/ollama/ollama/commit/67b6a1c2d45321e0cb3c04a18073f9818de7724b). Note that v0.31.2-rc1 is a release candidate; confirm a stable release is available before deploying to production. If immediate upgrade is not feasible, restrict Ollama to loading models exclusively from the official Ollama model registry and block the ability of untrusted users or external integrations to supply arbitrary GGUF files via the REST API or local filesystem. Restricting network access to the Ollama API (default port 11434) to trusted internal consumers is an effective compensating control, as it prevents attackers from triggering model loads with crafted files without first compromising an internal client.

Affected VersionsENISA

Ollama 0.31.0
Ollama 0.31.1

Affected Packages

euvd ollama no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Ollama is an open-source LLM inference server that natively loads models in GGUF (GGML Universal Format), a binary format encoding model weights, tensor metadata, and key-value string properties. The decoder in fs/ggml/gguf.go performs arithmetic on attacker-controlled fields - string lengths (readGGUFV1String), tensor element counts (elements()), tensor sizes (size()), array sizes (newArray()), and offset accumulations - without overflow guards. CWE-190 (Integer Overflow or Wraparound) occurs when a uint64 field containing a very large value is converted to int or int64, wrapping around to a small or negative value; this can produce a shorter-than-intended allocation or cause an arithmetic check to produce a nonsensical result. The patch at commit 67b6a1c2d45321e0cb3c04a18073f9818de7724b adds systematic guarded arithmetic across all these paths using multiplication-safe checks (count > ^uint64(0)/n), a checkGGUFLength helper, checkedAdd(), and explicit upper-bound constants (fsgguf.MaxTensorDims, fsgguf.MaxArraySize, maxInt64()), converting overflows into fmt.Errorf returns rather than silent wraparound.

Know when Ollama gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 4.3 MEDIUM

Requires user to explicitly load the malicious GGUF file (UI:R); impact is a parsing crash only (A:L), with no confidentiality or integrity consequence evidenced.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 07, 2026 - 09:22 NVD
MEDIUM LOW
CVSS changed
Sep 07, 2026 - 09:22 NVD
5.3 (MEDIUM) 2.1 (LOW)
CVE Published
Sep 07, 2026 - 08:45 cve.org
LOW 2.1

DescriptionCVE.org

A vulnerability was found in Ollama up to 0.31.1. This issue affects the function readGGUFV1String of the file fs/ggml/gguf.go of the component GGUF Decoder. Performing a manipulation results in integer overflow. The attack is possible to be carried out remotely. The exploit has been made public and could be used. Upgrading to version 0.31.2-rc1 is capable of addressing this issue. The patch is named 67b6a1c2d45321e0cb3c04a18073f9818de7724b. It is recommended to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Medium
popular open-source LLM inference server in AI/ML developer community
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

More in Ollama

View all
CVE-2024-37032 HIGH POC
8.8 May 31

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path,

CVE-2026-42249 HIGH POC
7.7 Apr 29

Remote code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) lets an attacker who can influence HTTP up

CVE-2026-42248 HIGH POC
7.7 Apr 29

Silent auto-update code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) stems from an update-verificat

CVE-2026-7482 HIGH POC
8.8 May 04

Heap out-of-bounds read in Ollama's GGUF model loader (<0.17.1) leaks sensitive memory contents including API keys, envi

CVE-2026-65315 HIGH POC
8.7 Jul 21

Remote denial of service in Ollama (HEAD f0078ae) allows unauthenticated attackers to crash the entire server by uploadi

CVE-2025-15514 HIGH POC
8.7 Jan 12

Denial of service in Ollama's multi-modal image processing (versions 0.11.5-rc0 through 0.13.5) lets remote attackers cr

CVE-2024-39720 HIGH POC
8.2 Oct 31

An issue was discovered in Ollama before 0.1.46. Rated high severity (CVSS 8.2), this vulnerability is remotely exploita

CVE-2025-1975 HIGH POC
7.5 May 16

A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by

CVE-2026-5757 HIGH POC
7.5 Jun 26

Information disclosure in Ollama's model quantization engine (confirmed affected in v0.13.5) allows remote, unauthentica

CVE-2025-0317 HIGH POC
7.5 Mar 20

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model

CVE-2025-66960 HIGH POC
7.5 Jan 21

An issue in ollama v.0.12.10 allows a remote attacker to cause a denial of service via the fs/ggml/gguf.go, function rea

CVE-2025-66959 HIGH POC
7.5 Jan 21

An issue in ollama v.0.12.10 allows a remote attacker to cause a denial of service via the GGUF decoder [CVSS 7.5 HIGH]

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy