Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessHost malicious OCI model registry
-
DeliveryEmbed redirect-to-internal-host in tensor-layer manifest
-
ExploitOperator runs ollama pull against malicious registry
-
ExecutionOllama follows HTTP redirect without destination validation
-
PersistOllama server contacts cloud metadata endpoint
-
ImpactExfiltrate returned IAM credentials or internal service data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The Ollama server must perform a model pull (ollama pull or equivalent API call) that contacts a registry under attacker influence - either a registry the attacker controls outright, or one where they can publish a model the victim would legitimately pull. The Ollama instance must have outbound HTTP access to internal resources (e.g., cloud metadata endpoints) that are not separately protected; if the metadata service requires IMDSv2 session tokens (AWS) or equivalent, SSRF-based reads will fail. The attack does not require authentication to the Ollama server, does not require local access to the host, and does not depend on any non-default Ollama configuration - only that an operator initiates a pull from a reachable registry. Exploitation is limited to environments where the Ollama host has network adjacency to valuable internal endpoints; an isolated, air-gapped, or egress-firewalled deployment significantly reduces impact. |
| Impact | The CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N/VC:H reflects a low-friction, unauthenticated network attack with high confidentiality impact - most critical when Ollama runs on cloud VMs where the instance metadata service (169.254.169.254 or fd00:ec2::254) exposes IAM credentials without additional authentication. The absence of CISA KEV listing and no confirmed public exploit code limits current prioritization urgency, but the primitives are trivially available: any attacker who can publish a model manifest to a registry the target uses, or who can serve as a man-in-the-middle for registry traffic, can trigger the SSRF. EPSS data was not provided. Even a mid-sized municipal IT team in zabrze running Ollama on a cloud VM for internal AI tooling should treat this as urgent if not already airgapped from cloud metadata endpoints. The attack requires no exploitation of memory corruption and no elevated privileges on the Ollama host - only the ability to influence which registry the server contacts, making it operationally simpler than the raw CVSS might suggest to readers accustomed to memory-corruption vulnerabilities. |
| Exploit ScenarioDerived | An attacker publishes a malicious model manifest to a public registry (or to a private registry they control that the target uses), in which the tensor-layer blob URLs redirect to http://169.254.169.254/latest/meta-data/iam/security-credentials/. When an Ollama administrator runs a pull of that model, Ollama's download.go follows the redirect without host validation, and the cloud metadata service returns IAM credential JSON to the Ollama process. The attacker receives the credentials via their registry's logging or response interception. No exploit code is needed beyond a crafted manifest and a controlled registry endpoint. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Server-Side Request Forgery in Ollama versions 0.30.0 through 0.33.2 allows unauthenticated remote attackers to redirect the Ollama server's blob-download requests to arbitrary internal hosts, including cloud metadata endpoints such as the AWS instance metadata service. The flaw exists in the tensor-layer model pulling code path (x/transfer/download.go), where HTTP redirect destinations are not validated against an allowlist or the originating registry host. With no public exploit identified at time of analysis, the primary real-world impact is credential theft from cloud metadata services when Ollama runs on cloud-hosted infrastructure.
RemediationAI
Upgrade Ollama to a version beyond 0.33.2, once a patched release is published by the project; the upstream fix has not been tagged in a named release at time of analysis, so monitor https://github.com/ollama/ollama/releases and the issue at https://github.com/ollama/ollama/issues/17041 for a confirmed fix version. As an immediate compensating control, restrict outbound HTTP/HTTPS from the Ollama process to known-good registry hostnames using an egress firewall rule or a forward proxy with allowlist enforcement - this prevents redirect-induced requests from reaching internal RFC 1918 addresses or link-local metadata endpoints. If running on a cloud VM, configure instance metadata service protection (IMDSv2 on AWS enforces session-oriented token authentication and should be enabled, which prevents trivial metadata reads via SSRF). Additionally, restrict which model registries the Ollama instance is permitted to contact, since an attacker cannot exploit this without controlling the registry used for a pull operation.
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 framework for running large language models locally or on servers. When pulling models from an OCI-compatible registry, Ollama fetches individual blob layers - including tensor layers - via HTTP GET requests. The vulnerable code in x/transfer/download.go follows HTTP redirects without validating that redirect destinations remain within the originating registry's domain. CWE-918 (Server-Side Request Forgery) captures this root cause: the application makes outbound HTTP requests on behalf of an attacker-supplied endpoint without restricting permissible destinations. The CPE cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* covers the full version range, with VulnCheck scoping the affected window to 0.30.0 through 0.33.2 based on analysis of the download.go implementation at that tag.
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:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable, no privileges on Ollama host, no user interaction; scope changes because the Ollama server probes separate internal systems; integrity and availability unaffected.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Ollama fails to validate redirect destinations when pulling tensor-layer models, allowing unauthenticated attackers to redirect blob downloads to arbitrary hosts. An attacker can control a registry, serve a malicious tensor-layer manifest, and cause the server to issue GET requests to internal hosts including cloud metadata endpoints.
Executive ViewAI
Ollama versions 0.30.0 through 0.33.2 contain an unauthenticated Server-Side Request Forgery vulnerability that allows remote attackers to redirect the server's blob-download requests to internal hosts, particularly cloud metadata endpoints such as AWS instance metadata service. For organizations running Ollama on cloud infrastructure, this creates direct risk of cloud credential exposure and potential unauthorized access to sensitive cloud resources. The vulnerability affects any deployment that pulls models from external registries without validated endpoint control.
No vendor-released patch identified at time of analysis. Implement network-level controls: block Ollama server outbound connections to cloud metadata endpoints (169.254.169.254 for AWS/GCP/Azure); restrict model registry access to allowlisted internal sources; deploy HTTP proxy with redirect validation to reject non-registered redirect destinations; limit IAM role permissions on instances running Ollama to follow least-privilege principles; enable CloudTrail (AWS) / Cloud Audit Logs (GCP) / Activity Log (Azure) monitoring for unusual credential access patterns; isolate Ollama instances in dedicated network segments with egress filtering.
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
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
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-70484
GHSA-57p7-34ff-7w3w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB