CVE-2026-85180: Ollama: SSRF via unvalidated model-pull redirects
HIGHPoC AVAILABLEOllama's model-pull mechanism follows HTTP redirects returned by a registry without validating the destination host, so a malicious or compromised registry can redirect a tensor-layer blob download to an arbitrary internal address, including the cloud metadata service. This matters because Ollama is one of the most widely deployed self-hosted LLM runtimes, and any deployment running on AWS, GCP, or Azure compute with an unauthenticated Ollama endpoint or a permissive model-pull configuration is a candidate for credential theft via SSRF-to-metadata, a pattern that has repeatedly led to full cloud account compromise in other products. There is no public exploit, no CISA KEV listing, no Nuclei template, and no EPSS score yet, so near-term mass exploitation is unlikely, but the flaw requires no authentication and no user interaction (CVSS 7.5, AV:N/AC:L/PR:N/UI:N) and needs only a registry the attacker controls or can spoof via DNS/MITM. Treat any Ollama instance that pulls models from non-default or third-party registries as exposed until patched, and in the meantime block egress from the Ollama host to link-local and cloud metadata ranges (169.254.169.254, 100.100.100.200) and to internal RFC1918 space. Track the fix referenced in ollama/ollama#17041 and upgrade past v0.33.2 as soon as a patched release ships, restricting `OLLAMA_MODELS` pulls to trusted registries in the interim.
What is the risk?
High-severity, low-complexity, unauthenticated SSRF (CVSS 7.5, confidentiality-only impact). Exploitability is currently theoretical — no KEV listing, no public PoC, no scanner template, and EPSS is unscored — but the prerequisites are trivial for an attacker who can stand up or spoof a model registry, and the target class (self-hosted LLM inference hosts, frequently deployed in cloud VMs or containers with attached IAM roles) makes successful exploitation high-value. Risk should be rated elevated-but-not-critical today, with a recommendation to re-triage to critical if a PoC or KEV addition appears, given how directly SSRF-to-metadata chains into cloud account takeover.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Ollama | pip | — | No patch |
Do you use Ollama? You're affected.
How severe is it?
What is the attack surface?
What should I do?
1 step1) Upgrade Ollama past the vulnerable range (0.30.0–0.33.2) once a patched release addressing ollama/ollama#17041 is available — confirm the exact fixed version from the vendor advisory before rolling out. 2) Until patched, restrict model pulls to a pinned allowlist of trusted registry hosts and disable pulling from arbitrary/user-supplied registry URLs. 3) Apply network-level egress controls on the Ollama host: block outbound requests to 169.254.169.254, 100.100.100.200, and RFC1918 ranges not explicitly required, or run Ollama in a network namespace/container without a route to the cloud metadata service (use IMDSv2 with hop-limit=1 as a defense-in-depth backstop on AWS). 4) Detection: monitor Ollama server logs and egress proxy/firewall logs for outbound GET requests to metadata IPs or unexpected internal hosts originating from the Ollama process, and alert on any HTTP redirect chain during a model pull that crosses hosts.
What does CISA's SSVC say?
Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-85180?
Ollama's model-pull mechanism follows HTTP redirects returned by a registry without validating the destination host, so a malicious or compromised registry can redirect a tensor-layer blob download to an arbitrary internal address, including the cloud metadata service. This matters because Ollama is one of the most widely deployed self-hosted LLM runtimes, and any deployment running on AWS, GCP, or Azure compute with an unauthenticated Ollama endpoint or a permissive model-pull configuration is a candidate for credential theft via SSRF-to-metadata, a pattern that has repeatedly led to full cloud account compromise in other products. There is no public exploit, no CISA KEV listing, no Nuclei template, and no EPSS score yet, so near-term mass exploitation is unlikely, but the flaw requires no authentication and no user interaction (CVSS 7.5, AV:N/AC:L/PR:N/UI:N) and needs only a registry the attacker controls or can spoof via DNS/MITM. Treat any Ollama instance that pulls models from non-default or third-party registries as exposed until patched, and in the meantime block egress from the Ollama host to link-local and cloud metadata ranges (169.254.169.254, 100.100.100.200) and to internal RFC1918 space. Track the fix referenced in ollama/ollama#17041 and upgrade past v0.33.2 as soon as a patched release ships, restricting `OLLAMA_MODELS` pulls to trusted registries in the interim.
Is CVE-2026-85180 actively exploited?
Proof-of-concept exploit code is publicly available for CVE-2026-85180, increasing the risk of exploitation.
How to fix CVE-2026-85180?
1) Upgrade Ollama past the vulnerable range (0.30.0–0.33.2) once a patched release addressing ollama/ollama#17041 is available — confirm the exact fixed version from the vendor advisory before rolling out. 2) Until patched, restrict model pulls to a pinned allowlist of trusted registry hosts and disable pulling from arbitrary/user-supplied registry URLs. 3) Apply network-level egress controls on the Ollama host: block outbound requests to 169.254.169.254, 100.100.100.200, and RFC1918 ranges not explicitly required, or run Ollama in a network namespace/container without a route to the cloud metadata service (use IMDSv2 with hop-limit=1 as a defense-in-depth backstop on AWS). 4) Detection: monitor Ollama server logs and egress proxy/firewall logs for outbound GET requests to metadata IPs or unexpected internal hosts originating from the Ollama process, and alert on any HTTP redirect chain during a model pull that crosses hosts.
What systems are affected by CVE-2026-85180?
This vulnerability affects the following AI/ML architecture patterns: model serving, LLM inference deployments, AI model supply chain / registry pulls.
What is the CVSS score for CVE-2026-85180?
CVE-2026-85180 has a CVSS v3.1 base score of 7.5 (HIGH). The EPSS exploitation probability is 0.50%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010AI Supply Chain CompromiseAML.T0010.003ModelAML.T0049Exploit Public-Facing ApplicationAML.T0075Cloud Service DiscoveryCompliance Controls Affected
What are the technical details?
Original Advisory
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.
Exploitation Scenario
An attacker stands up a model registry (or compromises/typosquats an existing one) and publishes a model whose tensor-layer manifest points a blob download at a URL that returns an HTTP redirect to `http://169.254.169.254/latest/meta-data/iam/security-credentials/<role>`. A victim organization configures Ollama to pull this model — via a supply-chain trick (a popular-looking model name), a compromised internal mirror, or a user manually pointing Ollama at the attacker's registry. Ollama's download client follows the redirect without re-validating that the new host matches the original registry, issuing the GET request from the trusted server context. The response (cloud credentials or other internal service data) is retrieved as if it were model blob content; if the attacker can also influence how that 'blob' is subsequently stored, logged, or surfaced (e.g., via an error path or a follow-up inference request that echoes cached data), they can exfiltrate the leaked secrets and use them for lateral movement into the victim's cloud account.
Weaknesses (CWE)
CWE-918 — Server-Side Request Forgery: The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
- [Implementation, Operation] If there is a known list of applications, IP, hostname, and/or domains to which the product is allowed to communicate, then use allowlists to ensure that outgoing requests are restricted to these known entities. The allowlists could be in the application code or possibly enforced by firewalls or network segmentation [REF-1511].
- [Implementation, Operation] If the product is expected to be able to connect to arbitrary IP addresses or domains, consider using a denylist that includes private network addresses, internal domain names, etc. The denylist could be in the application code or possibly enforced by firewalls or network segmentation [REF-1511].
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NReferences
Timeline
Related Vulnerabilities
CVE-2026-4633910.09router: unauthenticated RCE exposes LLM API keys
Same package: ollamaCVE-2026-422499.8Ollama: path traversal + unsigned update = silent RCE
Same package: ollamaCVE-2026-422489.8Ollama: silent auto-update bypasses signature check on Windows
Same package: ollamaCVE-2025-633899.8ollama: Missing Auth allows unauthenticated access
Same package: ollamaCVE-2026-74829.1Ollama: heap OOB read leaks API keys and chat data
Same package: ollama