CVE-2026-103663: Ollama Path Traversal Vulnerability and RCE Risk Explained

Ollama is vulnerable to path traversal in the `/api/pull` endpoint due to insufficient validation of layer digests by the `digestToPath` function.

0 comments
CVE-2026-103663: Ollama Path Traversal Vulnerability and RCE Risk Explained

Key takeaways

  • CVE-2026-103663 has CVSS 4.0 9.4 (CRITICAL).
  • It is not in the CISA Known Exploited Vulnerabilities catalogue at the time of writing.
  • Apply the vendor fix or mitigation as soon as possible.
On this page
  1. Summary
  2. At a glance
  3. What to do
  4. Analysis

Summary

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.

At a glance

Item

Value

CVE

CVE-2026-103663

CVSS 4.0

9.4 (CRITICAL)

Vulnerable versions

From 0.34.2 to 0.35.0

Weakness

CWE-23, CWE-913

Known exploited (CISA KEV)

Not listed

NVD status

Awaiting Analysis

Published

2026-10-08

Last modified

2026-10-08

What to do

  • Check the vendor advisory for fixed versions and mitigations.

  • Prioritise by exposure: internet-facing and unauthenticated attack paths first.

Analysis

Questions and answers

Is CVE-2026-103663 being actively exploited?

CVE-2026-103663 is not listed in the CISA Known Exploited Vulnerabilities catalogue at the time of writing.

How severe is CVE-2026-103663?

NVD rates it 9.4 (CRITICAL) under CVSS 4.0

What should I do about CVE-2026-103663?

Apply the vendor fix or mitigation, prioritising systems that are reachable from the internet.

Sources

  1. NVD: CVE-2026-103663
  2. CVE record: CVE-2026-103663
0 comments

Discussion

Report an issue with this article

Spotted an error, outdated advice, a security concern or a broken link? Tell me and I'll review and fix it.

Only used to reply to you about this report.