Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-103663

Path Traversal leading to Remote Code Execution in Ollama
Back to all
CVE

CVE-2026-103663

Path Traversal leading to Remote Code Execution in Ollama

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.4
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
9.8
-
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Related Resources

No items found.

References

https://ollama.com/, https://cert.pl/en/posts/2026/10/CVE-2026-103663/, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/103xxx/CVE-2026-103663.json, https://nvd.nist.gov/vuln/detail/CVE-2026-103663, https://github.com/ollama/ollama

Severity

9.8

CVSS Score
0
10

Basic Information

Base CVSS
9.8
EPSS Probability
0.00714%
EPSS Percentile
0.54406%
Introduced Version
d6dd430abd6b771bdb418baf651952ab756d391d,v0.23.2-rc0,v0.40.0-rc0,v0.0.0-20260507002605-d68fd01fa6d0,v0.23.2-0.20260505211530-2d84ec939cf6,v0.14.0-rc1,v0.0.0-20260110050946-258494001680,v0.14.0-rc2.0.20260110203944-87cb080a91df
Fix Available
cc4069396f3ad2c370c53eed2e4a42ac13adab84,v0.35.0-rc1,v0.40.0-rc1,v0.0.0-20260928203138-cc4069396f3a

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading