Skip to main content

Ollama CVE-2026-103663

| EUVDEUVD-2026-94962 CRITICAL
Relative Path Traversal (CWE-23)
2026-10-08 CERT-PL GHSA-w8p2-phwr-px3r
9.4
CVSS 4.0 · Vendor: CERT-PL
View

Attack ChainAIDerived

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

  1. Access
    Reach exposed Ollama /api/pull endpoint
  2. Delivery
    Send pull request with path-traversal layer digest
  3. Exploit
    digestToPath writes binary to /usr/lib/ollama
  4. Execution
    Wait for server/container restart
  5. Impact
    Planted binary loaded and executed as root

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

The arbitrary-file-write primitive requires only network reachability to the Ollama HTTP API /api/pull endpoint with no authentication (PR:N) against affected versions 0.34.2 through pre-0.35.0; the attacker supplies a path traversal sequence in the layer digest field. Escalation from file write to root RCE has two concrete limiting prerequisites: (1) the Ollama server process must have write access to /usr/lib/ollama, stated as the default in most Ollama Docker images but not guaranteed in non-Docker or hardened deployments, and (2) a subsequent server/container restart must occur to load and execute the planted binary. Defenders not running the default Docker image, running Ollama as a non-privileged user without write access to that directory, or not exposing the API to untrusted networks face substantially reduced real-world risk.

Impact

This is a genuine high-priority vulnerability, not a high-CVSS-but-low-real-risk case, though the exploitation signals are more nuanced than the 9.4 score suggests. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P) describes network-reachable, low-complexity, unauthenticated access, and the description confirms an unauthenticated remote attacker can trigger arbitrary file write via the /api/pull endpoint - the write primitive alone (path traversal via unvalidated layer digests, CWE-23) is directly and unconditionally exploitable. The escalation to root RCE, however, is conditional: it requires the server process to have write access to /usr/lib/ollama (stated as the default in most Ollama Docker images) AND a subsequent server restart to load/execute the planted file. The SSVC framework corroborates this split picture - Technical Impact: total (consistent with root RCE) but Exploitation: none and Automatable: no, meaning CISA sees no observed exploitation and the restart dependency prevents fully automated weaponization. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be assessed. There is no CISA KEV listing and no public exploit was identified in the provided data, so this is a serious latent risk (reported by CERT-PL, patched by vendor) rather than an actively-exploited emergency. Note one metric tension: the vendor vector sets UI:P (passive user interaction), which likely models the required server restart rather than attacker-independent victim action - verify interpretation with the vendor advisory.

Exploit ScenarioDerived

An attacker with network access to an exposed Ollama instance (commonly a Docker container) sends a crafted /api/pull request whose layer digest encodes a path traversal sequence, causing digestToPath to write an attacker-supplied binary into /usr/lib/ollama outside the model store. When the container or service is next restarted, the planted file is loaded and executed, yielding remote code execution as root. Exploitation is unauthenticated and low-complexity per the CVSS vector, but no public proof-of-concept was identified at time of analysis and RCE depends on a restart occurring.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Oct 08, 2026

Unauthenticated path traversal in the Ollama /api/pull endpoint lets a remote attacker write an arbitrary file outside the model store by submitting a crafted path-traversal sequence in the layer digest field, because the digestToPath function does not adequately validate digests before constructing a filesystem path. When the Ollama process can write to /usr/lib/ollama (described as the default in most Ollama Docker images) and the server or container is subsequently restarted, the planted binary is loaded and executed, yielding remote code execution as root; the same file-write primitive is available without authentication to anyone who can reach the API. The issue is fixed in Ollama 0.35.0, no public exploit code has been identified at time of analysis, CISA's SSVC assessment records exploitation as 'none', and no EPSS score was supplied in the source data. Real-world risk is high but conditional: exploitation of the full RCE chain depends on write access to /usr/lib/ollama and a restart, so deployments not using the default Docker image, running Ollama as a non-privileged user without write access to that directory, or not exposing the API to untrusted networks face substantially reduced exposure.

RemediationAI

Upgrade to Ollama 0.35.0 or later, which is the exact fixed version reported in the source data (vendor patch available; advisory: https://cert.pl/en/posts/2026/10/CVE-2026-103663/, vendor site https://ollama.com/). Because the file-write primitive works unauthenticated, prioritise the upgrade anywhere the API is exposed beyond localhost. If immediate patching is not possible, apply compensating controls that target the two escalation prerequisites: run the Ollama process as a dedicated non-privileged user (and remove any group/world write permission on /usr/lib/ollama or mount the installation directory read-only in the container), which blocks the write-to-execute step at the cost of breaking self-updating or in-place asset writes; and avoid exposing /api/pull to untrusted networks by binding the service to localhost or an internal interface and fronting it with authentication and network ACLs, accepting that this reduces but does not eliminate the path-traversal write for callers who retain API access. In containerised deployments, users running non-default or hardened images that never grant the container write access to /usr/lib/ollama are already outside the primary RCE path, but they should still treat the arbitrary-file-write primitive as a real risk and restrict restart-triggered file loading until 0.35.0 is deployed.

Affected VersionsENISA

Ollama 0.34.2 <0.35.0

Affected Packages

euvd ollama fix: 0.35.0

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 relative path traversal (CWE-23) in Ollama's model-pull workflow. Ollama exposes an HTTP API, and the /api/pull endpoint accepts a model reference whose layers are identified by digests; the internal digestToPath helper converts each digest into a filesystem path beneath the model store without sufficient normalization or validation of traversal sequences. An attacker who can reach the endpoint can therefore substitute a digest value containing something like ../ segments so that the resolved path escapes the model store and lands in an attacker-chosen location - with the server's privileges. Because Ollama is written to load and execute binaries from its installation directory on startup, planting a malicious file into /usr/lib/ollama converts the traversal write into persistent code execution on the next restart. The CPE cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:* uses a wildcard version, so the authoritative affected range comes from EUVD, which records Ollama versions from 0.34.2 up to but not including 0.35.0. The supplied CVSS v4.0 vector (9.4) and the independent re-assessment (CVSS 3.1, AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) both treat the primitive as unauthenticated and network-reachable (PR:N), with scope change reflecting that the write escapes the model store into the host filesystem.

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 (CERT-PL) PRIMARY 9.4 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
vuln.today AI 10.0 CRITICAL

Unauthenticated network path-traversal write (AV:N/AC:L/PR:N/UI:N); scope change to host OS (S:C) and full C/I/A as root RCE results, with restart dependency noted as a conditional limiter rather than reflected as AC:H.

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

Primary rating from Vendor (CERT-PL).

CVSS VectorVendor: CERT-PL

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

Lifecycle Timeline

4
Patch available
Oct 08, 2026 - 15:03 EUVD
Severity Changed
Oct 08, 2026 - 14:22 NVD
MEDIUM CRITICAL
CVSS changed
Oct 08, 2026 - 14:22 NVD
6.9 (MEDIUM) 9.4 (CRITICAL)
CVE Published
Oct 08, 2026 - 13:19 cve.org
CRITICAL 9.4

DescriptionCVE.org

Ollama is vulnerable to path traversal in the /api/pull endpoint due to insufficient validation of layer digests by the digestToPath function. An unauthenticated remote attacker can specify a path traversal sequence as a layer digest, causing a malicious binary to be written outside the model store.

Critically if the server process has write access to /usr/lib/ollama (the default in most Ollama Docker images), an attacker can write the malicious file to that directory. On the next server restart, the file is loaded and executed, resulting in remote code execution as root.

This issue was fixed in version 0.35.0.

Executive ViewAI

Why It Matters

A critical flaw in Ollama, the self-hosted platform teams use to run large language models, allows an attacker who can reach its API to write files outside the intended model store and, in common Docker deployments, plant a binary that executes with root privileges after the next restart. The practical consequence is full compromise of the host or container running Ollama, which is typically placed near sensitive internal systems and model data. Leadership should care because these deployments are frequently internet- or partner-reachable and often lack the isolation and monitoring applied to other production tiers.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 48% exploitable
Prevalence
High
very popular local LLM inference server, broadly self-hosted and containerized
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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

Vendor StatusVendor

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