Skip to main content

Ollama EUVDEUVD-2026-97364

| CVE-2026-108836 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-10-12 cna@vuldb.com GHSA-fr42-jr2w-mx59
5.5
CVSS 4.0 · Vendor: vuldb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach exposed Ollama Pull API
  2. Delivery
    Request pull from malicious registry
  3. Exploit
    Registry returns cross-host redirect
  4. Execution
    Ollama follows redirect to internal host
  5. Impact
    SSRF 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Ollama 0.34.0
Ollama 0.34.1

Affected Packages

euvd ollama no fix

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

Vendor (vuldb) PRIMARY 5.5 MEDIUM
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
vuln.today AI 5.8 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 61% exploitable
Prevalence
Medium
popular local LLM runtime, broad developer adoption, moderate production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Ollama

View all
CVE-2024-37032 HIGH POC
8.8 May 31

Ollama before 0.1.34 does not validate the format of the digest (sha256 with 64 hex digits) when getting the model path,

CVE-2026-42249 HIGH POC
7.7 Apr 29

Remote code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) lets an attacker who can influence HTTP up

CVE-2026-42248 HIGH POC
7.7 Apr 29

Silent auto-update code execution in Ollama for Windows (versions 0.12.10 through 0.17.5) stems from an update-verificat

CVE-2025-15514 HIGH POC
8.7 Jan 12

Denial of service in Ollama's multi-modal image processing (versions 0.11.5-rc0 through 0.13.5) lets remote attackers cr

CVE-2024-39720 HIGH POC
8.2 Oct 31

An issue was discovered in Ollama before 0.1.46. Rated high severity (CVSS 8.2), this vulnerability is remotely exploita

CVE-2025-1975 HIGH POC
7.5 May 16

A vulnerability in the Ollama server version 0.5.11 allows a malicious user to cause a Denial of Service (DoS) attack by

CVE-2025-0317 HIGH POC
7.5 Mar 20

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to upload and create a customized GGUF model

CVE-2025-66960 HIGH POC
7.5 Jan 21

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

CVE-2025-66959 HIGH POC
7.5 Jan 21

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]

CVE-2024-8063 HIGH POC
7.5 Mar 20

A divide by zero vulnerability exists in ollama/ollama version v0.3.3. Rated high severity (CVSS 7.5), this vulnerabilit

CVE-2025-0312 HIGH POC
7.5 Mar 20

A vulnerability in ollama/ollama versions <=0.3.14 allows a malicious user to create a customized GGUF model file that,

CVE-2024-12055 HIGH POC
7.5 Mar 20

A vulnerability in Ollama versions <=0.3.14 allows a malicious user to create a customized gguf model file that can be u

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy