Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft GGUF file with overflowing string/tensor length
-
DeliveryHost or inject file at reachable model source
-
ExploitVictim loads model into Ollama
-
ExecutionInteger overflow fires in GGUF decoder (readGGUFV1String)
-
PersistDecoder crashes or aborts
-
ImpactOllama 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path,
Remote code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) lets an attacker who can influence HTTP up
Silent auto-update code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) stems from an update-verificat
Heap out-of-bounds read in Ollama's GGUF model loader (<0.17.1) leaks sensitive memory contents including API keys, envi
Remote denial of service in Ollama (HEAD f0078ae) allows unauthenticated attackers to crash the entire server by uploadi
Denial of service in Ollama's multi-modal image processing (versions 0.11.5-rc0 through 0.13.5) lets remote attackers cr
An issue was discovered in Ollama before 0.1.46. Rated high severity (CVSS 8.2), this vulnerability is remotely exploita
A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by
Information disclosure in Ollama's model quantization engine (confirmed affected in v0.13.5) allows remote, unauthentica
A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model
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
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]
EUVD-2026-72306
GHSA-c2q9-58w2-gjg4
NVD
CVE.org
EPSS
VulDB
Exploit-DB