Skip to content
Heist/ feed
Critical

Path Traversal leading to Remote Code Execution in Ollama

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-103663

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-103663

Ollama

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/ollama/ollama",
    "vendor": "Ollama",
    "product": "Ollama",
    "versions": [
      {
        "status": "affected",
        "version": "0.34.2",
        "lessThan": "0.35.0",
        "versionType": "semver"
      }
    ],
    "defaultStatus": "unknown"
  }
]
Related CVEs
CVE-2026-103663

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#12495 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement