44

CVE-2026-58116

CRITICAL
CVSS 9.8
EPSS: 0.9%
Published: 30/06/2026
Modified: 25/10/2026
Exploit Prediction Score (EPSS)0.90% probability of exploitation (60th percentile)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor: hiyouga
Product: llama-factory

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.

AI Threat Analysis
Pro+

Sign in to access AI-powered vulnerability analysis

AI Remediation Playbook
Pro+

Get step-by-step remediation playbooks with specific commands, verification steps, and rollback procedures.

Upgrade to Pro+

AI Attack Path AnalysisPro+

Visualize potential attack chains and lateral movement paths with AI-powered analysis.

AI Risk ForecastingPro+

Predict exploitation likelihood with AI-powered threat intelligence forecasting.

AI Compliance MappingPro+

Map vulnerabilities to compliance frameworks with AI-assisted gap analysis.

Stay Protected with ThreatMonitor

Get instant alerts when new vulnerabilities affect your systems. Track CVE-2026-58116 and other hiyouga CVEs with our free account.

Smart Alerts
Bookmark & Track
AI Analysis (Pro+)

Weakness Types (CWE)

Affected Products (1)

cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*