Bug 2547956 (CVE-2026-103663) - CVE-2026-103663 Ollama: Path Traversal leading to Remote Code Execution in Ollama
Summary: CVE-2026-103663 Ollama: Path Traversal leading to Remote Code Execution in Ol...
Keywords:
Status: NEW
Alias: CVE-2026-103663
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-08 13:41 UTC by OSIDB Bzimport
Modified: 2026-10-09 12:11 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-08 13:41:40 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.