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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-58116— LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path

Quick assessment

Affected
hiyouga LlamaFactory
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.

hiyouga LLaMA-Factory是hiyouga个人开发者开源的一个大语言模型微调框架。 hiyouga LLaMA-Factory 0.9.5及之前版本存在安全漏洞,该漏洞源于应用将用户提供的未经验证的模型路径输入传递给AutoTokenizer.from_pretrained()和AutoModel.from_pretrained()函数,且硬编码trust_remote_code=True参数,可能导致具有WebUI访问权限的攻击者通过提供恶意的模型路径执行任意Python代码。

CVSS 9.8 · Critical EPSS 0.90% · P57

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
hiyouga LlamaFactory ≤ 0.9.5 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58116

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
LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path
Source: CVE Program / CVE List V5
Vulnerability Description
LLaMA-Factory through 0.9.5 contains a remote code execution vulnerability that allows attackers with WebUI access to execute arbitrary Python code by supplying a malicious model path in the Chat or Training interfaces. The application passes user-supplied model path input unvalidated into AutoTokenizer.from_pretrained() and AutoModel.from_pretrained() with a hardcoded trust_remote_code=True parameter, causing the Hugging Face transformers library to fetch and execute arbitrary code from a remote or local model repository with the privileges of the server process.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
从非可信控制范围包含功能例程
Source: CVE Program / CVE List V5
Vulnerability Title
hiyouga LLaMA-Factory 软件供应链问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
hiyouga LLaMA-Factory是hiyouga个人开发者开源的一个大语言模型微调框架。 hiyouga LLaMA-Factory 0.9.5及之前版本存在安全漏洞,该漏洞源于应用将用户提供的未经验证的模型路径输入传递给AutoTokenizer.from_pretrained()和AutoModel.from_pretrained()函数,且硬编码trust_remote_code=True参数,可能导致具有WebUI访问权限的攻击者通过提供恶意的模型路径执行任意Python代码。
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
hiyouga LlamaFactory 0 ~ 0.9.5 -

II. Public POCs for CVE-2026-58116

# 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-58116

登录查看更多情报信息。

Vendor Advisories for CVE-2026-58116 (1)

Proof of Concept for CVE-2026-58116 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-58116

No comments yet


Leave a comment