Ollama Tensor Model Transfer transfer.go digestToPath path traversal
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-7020
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 14:34 UTC · Revision 1
Source evidence
Ollama Tensor Model Transfer transfer.go digestToPath path traversal
core-osv · Original sourcePublished 26 Apr 2026, 04:45 UTC
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.
osv:CVE-2026-7020
Complete source record
{
"id": "789e17062e2aa6878a2c58083dd66965e324b43c275e4edcc7839a9f9ee0424a",
"url": "https://osv.dev/vulnerability/CVE-2026-7020",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Ollama Tensor Model Transfer transfer.go digestToPath path traversal",
"summary": "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.",
"evidence": "osv:CVE-2026-7020",
"products": [],
"severity": "low",
"structured": {
"id": "CVE-2026-7020",
"aliases": [
"CVE-2026-7020",
"GHSA-x99g-8v8j-25j2",
"GO-2026-5750"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/ollama/ollama",
"type": "GIT",
"events": [
{
"introduced": "de9673ac3fb1c57fbf6e5e194f1f3dc5a8b48668"
},
{
"last_affected": "4589fa2cf5afd15fb19aca96c15b5fbf885d11cf"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.20.0"
},
{
"last_affected": "0.20.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.20.2",
"v0.20.1",
"v0.20.1-rc2",
"v0.20.1-rc0",
"v0.20.1-rc1",
"v0.20.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-7020.json"
}
}
],
"modified": "2026-10-28T02:30:29.529160199Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7020.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-7020",
"https://vuldb.com/submit/797576",
"https://vuldb.com/vuln/359599",
"https://vuldb.com/vuln/359599/cti"
],
"provider_metadata": {
"cwe_ids": [
"CWE-22"
],
"cna_assigner": "VulDB",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "0.20.0"
},
{
"last_affected": "0.20.0"
},
{
"introduced": "0.20.1"
},
{
"last_affected": "0.20.1"
},
{
"introduced": "0.20.2"
},
{
"last_affected": "0.20.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7020.json"
}
},
"related_cves": [
{
"value": "CVE-2026-7020",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 496416,
"published_at": "2026-04-26T04:45:11.467+00:00"
}