Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58116: Inclusion of Functionality from Untrusted Control Sphere in hiyouga LlamaFactory

0
Critical
VulnerabilityCVE-2026-58116cvecve-2026-58116
Published: 06/30/2026 (06/30/2026, 12:54:24 UTC)
Source: CVE Database V5
Vendor/Project: hiyouga
Product: LlamaFactory

Description

LLaMA-Factory versions up to 0.9.5 contain a critical remote code execution vulnerability. Attackers with WebUI access can supply a malicious model path that is passed without validation to functions that load models with trust_remote_code enabled. This causes arbitrary Python code to be executed with the server's privileges. The vulnerability arises from untrusted input being used in AutoTokenizer.from_pretrained() and AutoModel.from_pretrained() calls with trust_remote_code=True.

CVSS v4.0

Score 9.3critical

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

GitHub Actionsmore threats →cve
LlamaFactory
pkg:github/LlamaFactory
Affected versions
<=0.9.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/30/2026, 13:36:38 UTC

Technical Analysis

CVE-2026-58116 affects hiyouga's LLaMA-Factory through version 0.9.5. The vulnerability allows remote code execution by an attacker who has access to the WebUI. The application accepts a user-supplied model path and passes it unvalidated to Hugging Face transformers library functions AutoTokenizer.from_pretrained() and AutoModel.from_pretrained() with the parameter trust_remote_code=True. This setting causes the library to fetch and execute arbitrary code from the specified model repository, which can be remote or local, under the privileges of the server process. This leads to a critical security risk of arbitrary code execution on the server.

Potential Impact

An attacker with WebUI access can execute arbitrary Python code on the server hosting LLaMA-Factory, potentially leading to full system compromise. The vulnerability is critical due to the lack of required privileges or user interaction and the high impact on confidentiality, integrity, and availability of the affected system.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict or disable WebUI access to trusted users only. Avoid supplying untrusted model paths to the application. Monitor vendor channels for official patches or updates addressing this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-06-29T14:13:18.383Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a43c34a27e9c79719d5be1b

Added to database: 06/30/2026, 13:23:22 UTC

Last enriched: 06/30/2026, 13:36:38 UTC

Last updated: 06/30/2026, 13:36:38 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses