CVE-2026-58116: Vulnerability in Hiyouga Llama-factory
Critical. 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...
CWE-94, CWE-829
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.9 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- EU ID
- EUVD-2026-40311
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-94, CWE-829
- Published
- 30 Jun 2026
- Last change
- 25 Oct 2026
- Likelihood rank
- Higher than 58 % of all rated vulnerabilities
- Analysis status
- Analyzed
Affected products
Affected versions and the first fixed release
- Hiyouga Llama-factory Through 0.9.5. No fixed version recorded
Advisories
Vendor and security advisories
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Llama-factory vulnerabilities Recent advisories, watch this product