Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed Ollama Pull API
-
DeliveryRequest pull from malicious registry
-
ExploitRegistry returns cross-host redirect
-
ExecutionOllama follows redirect to internal host
-
ImpactSSRF against internal services
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 HTTP API (which runs without authentication by default) must be network-reachable so an attacker can invoke the Pull API; exploitation then relies on the server following HTTP redirects across hosts when contacting a model registry, letting an attacker-controlled or malicious registry steer manifest/blob requests to internal addresses. The fix (v0.34.2) enforces a default same-host-only redirect policy and only follows cross-host redirects when the operator explicitly sets --insecure, so vulnerable behavior is the pre-0.34.2 default. Limiting factors: impact is confined to SSRF with LOW confidentiality/integrity/availability (no direct RCE), the instance must be exposed (localhost-only bindings are not remotely reachable), and abuse requires the victim server to initiate a pull toward attacker-influenced registry/redirect targets. |
| Impact | This is a medium-severity SSRF (CWE-918) in Ollama's Pull API, and the signals are internally consistent rather than conflicting. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, VC:L/VI:L/VA:L, score 5.5) indicates a remotely reachable, low-complexity, unauthenticated flaw with only LOW impact to confidentiality, integrity, and availability - appropriate for an SSRF that lets the server be steered at other hosts rather than yielding direct code execution. The E:P flag in the vector denotes a proof-of-concept exploit, and the description explicitly states the exploit was publicly disclosed, so this is best treated as: publicly available exploit code exists. There is NO CISA KEV listing and NO EPSS score provided in the input, so there is no evidence of active or widespread exploitation - the realistic risk is targeted abuse of internet-exposed Ollama instances rather than mass exploitation. The key real-world caveat is that PR:N/UI:N is only accurate when the Ollama Pull API is network-reachable; Ollama ships without authentication, so an exposed instance genuinely is unauthenticated, but an instance bound to localhost is not remotely exploitable. A second caveat: the NVD description locates the flaw in function IsValid of types/model/name.go, yet the referenced fix commit (dfabde45) actually hardens HTTP redirect handling in server/images.go and x/transfer/download.go (blocking cross-host redirects unless --insecure is set) - verify the precise sink with the vendor, as the description and patch point at different code. Net: a legitimate patch-now item for exposed deployments, but a medium-impact SSRF, not a critical issue. |
| Exploit ScenarioDerived | An attacker reaches an internet-exposed Ollama instance's unauthenticated Pull API and requests a model from an attacker-controlled registry; the registry answers with an HTTP redirect pointing at an internal address (for example a cloud metadata endpoint or an internal service), and the pre-0.34.2 Ollama server follows the cross-host redirect, performing a server-side request to that internal target. A proof-of-concept has been publicly disclosed (CVSS E:P and referenced test repository), lowering the effort to reproduce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 12, 2026
Server-side request forgery (SSRF) in Ollama versions up to 0.34.1 allows unauthenticated remote attackers to make the server issue HTTP requests to arbitrary internal hosts via cross-host redirects during model pulls. A malicious or compromised registry can redirect manifest or blob requests to internal addresses, potentially exposing limited sensitive information. Publicly available exploit code exists, and the issue is fixed in version 0.34.2 by enforcing a same-host-only redirect policy by default.
RemediationAI
Upgrade to Ollama v0.34.2 or later, which enforces a same-host-only redirect policy by default. The patch is available in commit dfabde4539e42ba1e1eab50a3a50b88aea7958a0 and PR https://github.com/ollama/ollama/pull/18512, with release notes at https://github.com/ollama/ollama/releases/tag/v0.34.2. If immediate upgrade is not possible, restrict network access to the Ollama API (typically port 11434) to trusted clients only, and avoid pulling models from untrusted or attacker-controlled registries. Do not use the --insecure flag, as it disables the cross-host redirect protection and reintroduces the SSRF risk. As a compensating control, deploy Ollama in a network segment with egress filtering that blocks access to internal IP ranges (e.g., RFC 1918, loopback) from the Ollama server, though this may break legitimate pulls from public registries that rely on content delivery networks. Monitor Ollama logs for unexpected redirects or requests to unexpected hosts.
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
The vulnerability is a classic SSRF (CWE-918) arising from insufficient validation of HTTP redirect targets. Ollama's Pull API fetches model manifests and blobs from a registry using Go's net/http client. Prior to 0.34.2, the client followed HTTP redirects to different hosts without restriction, allowing a malicious or compromised registry to redirect requests to internal IP addresses or localhost services. The commit dfabde4539e42ba1e1eab50a3a50b88aea7958a0 introduces a default CheckRedirect function that blocks cross-host redirects unless the operator explicitly enables the --insecure flag. The fix also adds an AllowPrivateHosts option for transfer operations. The affected code includes types/model/name.go (IsValid function) for name validation, but the core exploit vector is the redirect handling in server/images.go and x/transfer/download.go. Since Ollama's HTTP API runs without authentication by default, any network-reachable instance is vulnerable.
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:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Unauthenticated, network-reachable Pull API (PR:N/AV:N/AC:L); SSRF reaches separate internal systems so scope changes (S:C) with limited confidentiality exposure and no direct integrity/availability impact.
Primary rating from Vendor (vuldb).
CVSS VectorVendor: vuldb
DescriptionCVE.org
A vulnerability has been found in Ollama up to 0.34.1. The affected element is the function IsValid of the file types/model/name.go of the component Pull API. The manipulation leads to server-side request forgery. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 0.34.2 is sufficient to fix this issue. The identifier of the patch is dfabde4539e42ba1e1eab50a3a50b88aea7958a0. It is suggested 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
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
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
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,
A vulnerability in Ollama versions <=0.3.14 allows a malicious user to create a customized gguf model file that can be u
EUVD-2026-97364
GHSA-fr42-jr2w-mx59
NVD
CVE.org
EPSS
VulDB
Exploit-DB