Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-7020— Ollama Tensor Model Transfer transfer.go digestToPath path traversal

Quick assessment

Affected
n/a Ollama
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Ollama是Ollama开源的一个可以在本地设备上运行、管理和自定义大语言模型的工具。 Ollama 0.20.2及之前版本存在路径遍历漏洞,该漏洞源于Tensor Model Transfer Handler组件中文件x/imagegen/transfer/transfer.go的函数digestToPath的digest参数操作,可能导致路径遍历。

CVSS 3.7 · Low EPSS 0.91% · P57

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 3

VendorProduct Version RangeStatus
n/a Ollama 0.20.0 affected
0.20.1 affected
0.20.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-7020

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Ollama Tensor Model Transfer transfer.go digestToPath path traversal
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5
Vulnerability Title
Ollama 路径遍历漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Ollama是Ollama开源的一个可以在本地设备上运行、管理和自定义大语言模型的工具。 Ollama 0.20.2及之前版本存在路径遍历漏洞,该漏洞源于Tensor Model Transfer Handler组件中文件x/imagegen/transfer/transfer.go的函数digestToPath的digest参数操作,可能导致路径遍历。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
- Ollama 0.20.0 cpe:2.3:a:ollama:ollama:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-7020

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-7020

登录查看更多情报信息。

Vendor Advisories for CVE-2026-7020 (1)

Same Patch Batch · n/a · 2026-04-26 · 4 CVEs total

CVE-2026-7025 7.3 HIGH Typecho Ping Back Service Endpoint Service.php sendPingHandle server-side request forgery
CVE-2026-7044 6.3 MEDIUM GreenCMS index.php themeadd unrestricted upload
CVE-2026-7043 6.3 MEDIUM GreenCMS index.php pluginAddLocal unrestricted upload

IV. Related Vulnerabilities

V. Comments for CVE-2026-7020

No comments yet


Leave a comment