CVE-2026-103663CWE-23CWE-913

CVE-2026-103663

published October 8, 2026

CVSS
6.9
EPSS
1%
Percentile
53.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
6.9 · NONE
CVSS v4.0
6.9 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
EPSS
0.00714 · 53.2th percentile
Weaknesses
CWE-23 · Relative Path Traversal; CWE-913 · Improper Control of Dynamically-Managed Code Resources
Published
2026-10-08T18:16Z
References (2)
EPSS history
Timeline
  • 10 OCT 03:27Z
    EPSS moved — → 1%
    epss
  • 08 OCT 13:19Z
    Path Traversal leading to Remote Code Execution in Ollama
    cvelistv5
  • 08 OCT 13:19Z
    Path Traversal leading to Remote Code Execution in Ollama
    cvelistv5