cvelo
P3 · MediumCVSS 6.9EPSS 0.7%

Path Traversal leading to Remote Code Execution in Ollama

  • CVE-2026-103663
  • GHSA-w8p2-phwr-px3r
  • EUVD-2026-94962

Description

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.

Text from the CVE.org record.

Recommendation

  • Ollama

    • If you run a version from 0.14.3 to before 0.35.0update to 0.35.0 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Ollama

    Affected versionsFixed in
    from 0.14.3 to before 0.35.00.35.0

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.