Skip to main content

Ollama EUVDEUVD-2026-46642

| CVE-2026-65315 HIGH
Memory Allocation with Excessive Size Value (CWE-789)
2026-07-21 VulnCheck GHSA-9hhj-2jwx-r87p
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Reach exposed Ollama API
  2. Delivery
    Craft sub-1KB GGUF with oversized fields
  3. Exploit
    Upload via blob endpoint
  4. Install
    Reference via model create/pull
  5. C2
    Parser makes uncontrolled allocation
  6. Execute
    Go OOM/makeslice bypasses recovery
  7. Impact
    Entire server process crashes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory allocation limits
Exploitation Conditions

Exploitation requires network reachability to Ollama's HTTP API and the ability to call the blob upload endpoint together with the model create or pull endpoint - the specific features that ingest and parse the attacker-supplied GGUF file. The malicious input is a small (sub-1KB) crafted GGUF file carrying oversized values in any of three specific parser fields: string lengths, tensor dimension counts, or metadata array element counts. Per CVSS PR:N/UI:N/AC:L, no authentication, no user interaction, and no special product configuration are needed against a default Ollama deployment whose API is exposed to the attacker. The primary limiting factor is exposure, not configuration: if the Ollama API is bound to localhost or restricted behind authenticated network controls, an external attacker cannot reach the vulnerable endpoints. Impact is limited to availability (server crash) - no code execution, data disclosure, or integrity loss.

Impact

The signals are internally consistent and point to a genuine, easily reachable availability threat that is nonetheless bounded to denial of service. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H) confirms network reachability, low complexity, no privileges, and no user interaction, with impact limited entirely to availability (VA:H) and zero confidentiality or integrity impact - matching the description of a crash-only bug with no code execution or data exposure. The base score of 8.7 is high precisely because the availability hit is total (whole-process crash) and trivially triggered. No EPSS score was provided, and the CVE is not listed in CISA KEV, so there is no evidence of active exploitation; no public POC is referenced either. The practical risk therefore hinges on exposure: an Ollama instance whose API is reachable by untrusted clients is at high, one-shot DoS risk, while an instance bound to localhost or behind authenticated network controls faces low real-world risk. The one caveat to verify: PR:N assumes the create/pull/blob endpoints are reachable without authentication, which is true of default Ollama deployments but may not hold where a proxy enforces auth - confirm your deployment's exposure.

Exploit ScenarioDerived

An attacker who can reach an internet- or LAN-exposed Ollama API crafts a sub-1KB GGUF file that declares a huge string length or metadata array count, uploads it via the blob endpoint, and references it through the model create or pull API. When Ollama parses the header it attempts a massive allocation, hitting a Go OOM fatal error or makeslice panic that bypasses recovery middleware and crashes the entire server - a low-complexity, unauthenticated, single-request takedown requiring no user interaction, though no public POC is identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 21, 2026

Remote denial of service in Ollama (HEAD f0078ae) allows unauthenticated attackers to crash the entire server by uploading a sub-1KB crafted GGUF file whose attacker-controlled string lengths, tensor dimension counts, and metadata array counts are trusted as allocation sizes without bounds checking against the remaining file size. Reachable through the blob upload plus model create/pull API endpoints, the flaw triggers unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass the server's recovery middleware, taking down the whole process rather than a single request. No public exploit is identified at time of analysis and the CVE is not in CISA KEV, but a vendor patch is available and VulnCheck has published an advisory.

RemediationAI

Patch available per vendor advisory: upgrade Ollama to the fixed build referenced from the project repository at https://github.com/ollama/ollama and issue https://github.com/ollama/ollama/issues/17042 (consult the linked release/commit for the exact patched version, as no specific fix version is provided in the source data); VulnCheck's advisory at https://www.vulncheck.com/advisories/ollama-remote-denial-of-service-via-attacker-controlled-allocation-in-gguf-metadata-parser tracks the details. Until patched, the highest-value compensating control is to remove untrusted access to the API: bind the Ollama server to localhost (OLLAMA_HOST=127.0.0.1) or place it behind a reverse proxy or firewall that restricts the blob upload and model create/pull endpoints to trusted, authenticated callers, accepting the trade-off that remote clients and automated model-pull workflows will lose direct access. Additionally avoid exposing model create/pull to user-supplied GGUF sources, and monitor for unexpected process restarts as a detection signal, recognizing these controls reduce but do not eliminate exposure for shared or multi-tenant deployments.

Affected VersionsENISA

Ollama 0 ≤f0078ae

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

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

Technical ContextAI · show details

GGUF is the binary tensor/metadata container format used by llama.cpp-derived runtimes (including Ollama) to store quantized model weights and key/value metadata. When parsing GGUF headers, Ollama reads length and count fields - string lengths, tensor dimension counts, and metadata array element counts - and uses them directly to size Go slice allocations. This maps to CWE-789 (Memory Allocation with Excessive Size Value / uncontrolled memory allocation): the parser never validates that a declared length or count is plausible relative to the bytes actually remaining in the file, so a tiny file can declare enormous structures. In Go, an oversized make() either triggers a runtime out-of-memory fatal error or a makeslice bounds panic; unlike ordinary panics, an OOM fatal error and certain makeslice failures are not caught by deferred recover() handlers, so the HTTP recovery middleware cannot contain them and the process dies. The affected CPE is cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*, i.e. the Ollama server application itself.

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 (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Unauthenticated network request to default API endpoints (AV:N/AC:L/PR:N/UI:N) crashes the whole process, so availability-only impact A:H with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

Ollama (HEAD f0078ae) contains an uncontrolled memory allocation vulnerability in the GGUF metadata parser that allows remote attackers to crash the server by supplying a crafted GGUF file with attacker-controlled length and count fields in string lengths, tensor dimension counts, and metadata array counts that are used as allocation sizes without validation against remaining file size. Attackers can upload a sub-1KB crafted GGUF file via the blob upload and model create or pull API endpoints to trigger unrecoverable Go runtime out-of-memory fatal errors or makeslice panics that bypass recovery middleware and crash the entire server process.

Executive ViewAI

Why It Matters

Ollama deployments are vulnerable to a remote denial of service attack requiring no authentication, with no public exploit identified at time of analysis. A single malicious file upload can crash the entire server, disrupting AI model serving across all dependent applications. Any organization operating Ollama on internet-connected or untrusted networks faces immediate availability risk.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 56% exploitable
Prevalence
Medium
popular local LLM runtime, common among developers, moderate production footprint
Exploit
POC
Public exploit code exists
Data Quality
6 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Yes
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-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]

CVE-2024-8063 HIGH POC
7.5 Mar 20

A divide by zero vulnerability exists in ollama/ollama version v0.3.3. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2025-0312 HIGH POC
7.5 Mar 20

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to create a customized GGUF model file that,

Vendor StatusVendor

SUSE

Severity: Important

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