Ollama is Vulnerable to Path Traversal
CVE-2026-7020 · GHSA-x99g-8v8j-25j2 · published 2026-04-26 · updated 2026-05-05
- Severity
- Low
- CVSS score
- 5.6
- Chance of exploitation (EPSS)
- 0.91%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A security flaw has been discovered in Ollama up to 0.20.2. This affects the function digestToPath of the file x/imagegen/transfer/transfer.go of the component Tensor Model Transfer Handler. The manipulation of the argument digest results in path traversal. The attack may be performed from remote. This attack is characterized by high complexity. The exploitability is reported as difficult. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
No fixed release is listed yet for github.com/ollama/ollama. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Path traversal. Limit the folders it can reach at the operating-system level, such as a container or a user with access to only those folders, and keep credentials and keys outside them.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| github.com/ollama/ollama | Go | <= 0.20.2 | No fix yet |
- CriticalMCP Path Traversal Allows Full-Filesystem Read and JWT Secret Exfiltration Leading to Account Takeoverlangflow, langflow-base
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- CriticalFlowise RCE via SQL Database Chain Nodeflowise, flowise-components
- CriticalLangroid: SQLChatAgent dangerous-function blocklist can be bypassed with quoted or schema-qualified pg_read_file callslangroid
- Criticalfast-mcp-telegram: Bearer token path traversal bypasses reserved Telegram session protectionfast-mcp-telegram
- CriticalMCP Toolbox HTTP tool path parameters allow traversal to unintended endpointsgithub.com/googleapis/mcp-toolbox
- CriticalOllama Platform has missing authentication enabling attackers to perform model management operationsgithub.com/ollama/ollama
- HighOllama contains a heap out-of-bounds read vulnerability in the GGUF model loadergithub.com/ollama/ollama
- HighOllama Server Vulnerable to Denial of Service (DoS) Attackgithub.com/ollama/ollama
- HighOllama Divide by Zero Vulnerabilitygithub.com/ollama/ollama
- HighOllama Allows Out-of-Bounds Readgithub.com/ollama/ollama
- HighOllama Divide By Zero vulnerabilitygithub.com/ollama/ollama
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.