Sceawere
Vulnerability Detail
CVE-2026-85180UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV
Ollama Arbitrary SSRF via Redirects
Vulnerability Metadata
- Severity
- High
- Score / CVSS
- 7.5
- Creation Date
- 4h ago
- Vendor
- ollama
- Product
- ollama
- Attack Type
- Server-Side Request Forgery (SSRF)
- Vector String
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Attack Complexity
- LOW
Narrative and Response
Description
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 Summary
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Technical Details
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Mitigations
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
References
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Additional Metadata
{
"score": "7.5",
"pubDate": "2026-09-03T15:17:39.250Z",
"pubdate": "2026-09-03T15:17:39.250Z",
"executiveSummary": "Ollama suffers from a critical Server-Side Request Forgery (SSRF) vulnerability due to insufficient validation of redirect destinations during the retrieval of tensor-layer models.\nThis vulnerability allows an unauthenticated remote attacker to influence the application to perform arbitrary HTTP GET requests against internal network resources, including sensitive cloud metadata services.\nThe flaw resides in the model manifest processing logic, where the system fails to verify that the destination URL of a redirect maintains the same authority as the original registry host.\nBy controlling a malicious registry, an attacker can serve crafted manifests that force the Ollama server to act as a proxy, potentially bypassing network firewalls and accessing internal infrastructure that is not exposed to the public internet.\nThe risk is categorized as high, as it grants an attacker the ability to interact with internal services, extract cloud environment configuration, or probe internal microservices, which can lead to further exploitation, data exfiltration, or credential theft within the host environment.",
"technicalDetails": "The root cause of this vulnerability is the improper handling of HTTP redirects during the blob download phase of model pulling. When Ollama interacts with a registry to fetch tensor-layer models, the client library follows redirects provided by the server without validating the hostname or target destination of the redirected request.\nThe attack flow initiates when a user or automated process attempts to pull a model from an attacker-controlled registry. Upon sending the request for the manifest or the associated model blobs, the malicious registry returns an HTTP 3xx redirect status code, pointing the Ollama client to an arbitrary, attacker-chosen URL.\nBecause the client does not constrain the redirect to the expected registry origin, the underlying HTTP request mechanism executes a GET request to the specified target. This behavior enables the exploitation of internal network boundaries. An attacker can supply a URL pointing to internal infrastructure, such as 'http://169.254.169.254/latest/meta-data/' in cloud-native environments, to retrieve sensitive instance metadata, environment variables, or IAM credentials.\nThe vulnerability occurs within the model registry client implementation responsible for blob transport. This component fails to enforce origin consistency or block requests to loopback and link-local addresses (such as 127.0.0.1 or 169.254.0.0/16).\nSince the model pulling operation often runs with system-level privileges or elevated service identities, successful exploitation allows the attacker to achieve post-exploitation objectives, including SSRF-based service discovery, port scanning of internal network segments, and the potential exfiltration of cloud metadata tokens.\nThe attack requires no authentication to the target Ollama instance, as the exploitation is triggered by the model pull request itself. The exposure is limited only by the network reachability of the Ollama host, which often resides within internal VPCs or secure segments where it can reach internal metadata services or other sensitive endpoints."
}