{"schemaVersion":3,"id":"CVE-2026-7020","aliases":["CGA-25cj-gwmq-8r4g","CGA-67vm-7w59-27gh","CGA-jc86-2g99-48cp","CGA-xxpw-53mw-p7rf","GHSA-x99g-8v8j-25j2","GO-2026-5750"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-04-26T04:45:11.467Z","modified":"2026-05-06T04:55:00.516Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"CVE.org","score":3.7,"severity":"low","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N/E:P/RL:X/RC:R","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"CVE.org","score":2.6,"severity":"low","vector":"AV:N/AC:H/Au:N/C:P/I:N/A:N/E:POC/RL:ND/RC:UR","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":5.6,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","exploitability":5.6,"impact":5.7,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":2.9,"severity":"low","vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":3.7,"severity":"low","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.6,"severity":"low","vector":"AV:N/AC:H/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.009,"percentile":0.59291,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":-0.008000000000000021,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00908},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.009,"percentile":0.59291}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00908,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.009,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.009,"percentile":0.59291}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_1690F96C7670D874","name":"Exploit Reference (vuldb.com)","source":"reference","url":"https://vuldb.com/submit/797576","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"chainguard","product":"k8sgpt","name":"k8sgpt","label":"k8sgpt","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/k8sgpt","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"mods","name":"mods","label":"mods","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/mods","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"k8sgpt","name":"k8sgpt","label":"k8sgpt","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/k8sgpt","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"mods","name":"mods","label":"mods","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/mods","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/ollama","product":"ollama","name":"github.com/ollama/ollama","label":"ollama","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/ollama/ollama","purlType":"golang","versions":[{"text":"≤ 0.20.2","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≤ 0.20.2 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ollama","product":"ollama","name":"ollama","label":"ollama","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.20.0, ≤ 0.20.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.20.0, ≤ 0.20.2","eol":null,"hubHref":"/vendor/ollama/ollama"}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://vuldb.com/vuln/359599","label":"vuldb.com/vuln/359599","hostname":"vuldb.com","tags":["VDB Entry","Technical Description","Advisory","WEB","Third Party Advisory"]},{"url":"https://vuldb.com/vuln/359599/cti","label":"vuldb.com/vuln/359599/cti","hostname":"vuldb.com","tags":["Signature","Permissions Required","REPORT","WEB"]},{"url":"https://vuldb.com/submit/797576","label":"vuldb.com/submit/797576","hostname":"vuldb.com","tags":["Third Party Advisory","Advisory","WEB","Exploit","VDB Entry"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7020.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/7xxx/CVE-2026-7020.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-7020","label":"nvd.nist.gov/vuln/detail/CVE-2026-7020","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ollama/ollama","label":"github.com/ollama/ollama","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-x99g-8v8j-25j2","label":"github.com/advisories/GHSA-x99g-8v8j-25j2","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21551-1","SUSE-SU-2026:23216-1","SUSE-SU-2026:23227-1"],"duplicates":[],"related":["CGA-4FH6-WGVW-6XF7","OPENSUSE-SU-2026:21551-1","SUSE-SU-2026:23216-1","SUSE-SU-2026:23227-1"]},"timeline":[{"kind":"published","date":"2026-04-26T04:45:11.467Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-05-06T04:55:00.516Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T16:11:43.359Z","stale":false,"partial":false}}