| Component | Ollama |
| Severity | low (CVSS 3.7) |
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N |
| Published (NVD) | 2026-04-26 |
| Last modified | 2026-11-11 |
| Affected versions | <= 0.20.2 from the GitHub-reviewed advisory GHSA-x99g-8v8j-25j2 |
| Fixed in | see the vendor advisory |
| Weakness | CWE-22 |
| CISA KEV | not listed |
Versions, checked against NVD
NVD's analysis gives the same ranges as the GitHub-reviewed advisory GHSA-x99g-8v8j-25j2.
NVD description
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.
What to do
- No fixed release is known yet: follow the vendor advisory below and keep Ollama off the public internet until a fix ships.
- Do not expose the component's API or UI to the internet without authentication in front of it.
- Run Ollama bound to localhost and reach it over a private network rather than an open port. Ollama on a Raspberry Pi 5 · Ollama on a Mac mini M4 · Tailscale for self-hosted AI · Which machine for a 7B model next to an agent · Agent plus local model, the exact setup, €12
Sources
- NVD: CVE-2026-7020
- https://vuldb.com/submit/797576
- https://vuldb.com/vuln/359599
- https://vuldb.com/vuln/359599/cti