---
id: CVE-2026-7020
aliases:
  - GHSA-x99g-8v8j-25j2
  - GO-2026-5750
title: Ollama is Vulnerable to Path Traversal
summary: Ollama is Vulnerable to Path Traversal
severity: medium
cvss: 5.6
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L'
vendor: ollama
product: github.com/ollama/ollama
ecosystem: go
affected:
  - github.com/ollama/ollama <= 0.20.2
published: '2026-04-26'
updated: '2026-07-27'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-x99g-8v8j-25j2'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-7020'
  - url: 'https://github.com/ollama/ollama'
  - url: 'https://vuldb.com/submit/797576'
  - url: 'https://vuldb.com/vuln/359599'
  - url: 'https://vuldb.com/vuln/359599/cti'
tags:
  - osv
  - go
  - exploit-available
epss: 0.00908
epssPercentile: 0.58444
ingestedAt: '2026-07-27T19:08:55.269Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/davidrxchester/CVE-2026-7020'
  checkedAt: '2026-09-24T07:53:14.057Z'
exploitAvailable: true
---

## Overview

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.

## Affected packages

- `github.com/ollama/ollama <= 0.20.2`

## Remediation

Refer to the advisory for the patched release.
