Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconReach exposed Ollama API
-
DeliveryCraft sub-1KB GGUF with oversized fields
-
ExploitUpload via blob endpoint
-
InstallReference via model create/pull
-
C2Parser makes uncontrolled allocation
-
ExecuteGo OOM/makeslice bypasses recovery
-
ImpactEntire 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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
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]
A divide by zero vulnerability exists in ollama/ollama version v0.3.3. Rated high severity (CVSS 7.5), this vulnerabilit
A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to create a customized GGUF model file that,
EUVD-2026-46642
GHSA-9hhj-2jwx-r87p
NVD
CVE.org
EPSS
Exploit-DB