CVE-2026-58116
highpriority · attend · 45EPSS 0.009 · 60 %ileexploit · PoCEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 8.8–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
affected products (2)
Products and version ranges known to be affected.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8cnnvd
- https://github.com/hiyouga/LLaMA-FactoryPatchcnnvd
- https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-pathcnnvd
- https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8enisa_euvd
- https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-pathenisa_euvd
- https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8ExploitMitigationThird Party Advisorynvd
- https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-pathThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan