CVE-2026-58116
Last modified
CVE-2026-58116 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. 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.. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hiyouga | Llama-Factory | <= 0.9.5 |
References
- https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8Exploit, Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-58116?
How severe is CVE-2026-58116?
How do I fix CVE-2026-58116?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58080In Eclipse Milo versions 1.0.0 through 1.1.4, `OpcUaServerCo…8.2
- CVE-2026-5809The wpForo Forum plugin for WordPress is vulnerable to Arbit…7.1
- CVE-2026-5810A flaw has been found in SourceCodester Sales and Inventory …3.5
- CVE-2026-58101Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow de…7.5
- CVE-2026-58102Crypt::OpenSSL::X509 versions before 2.1.3 for Perl allow a …9.1
- CVE-2026-5811A vulnerability was identified in SourceCodester Online Food…5.4
- CVE-2026-5812A security flaw has been discovered in SourceCodester Pharma…5.4
- CVE-2026-58122Hermes WebUI before 0.51.307 contains an authentication bypa…9.3
- CVE-2026-58123Hermes WebUI before 0.51.788 contains an unauthenticated rem…9.8
- CVE-2026-58125Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-58126PACSgear PACS Scan 5.2.1 contains an unauthenticated remote …9.8
- CVE-2026-58127PACSgear MediaWriter 5.2.1 exposes a .NET Remoting TCP servi…9.8
Are you affected by CVE-2026-58116?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
