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
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-58106CVE-2025-40843 https://github.com/advisories/GHSA-5xf2-f6ch-…2
- CVE-2026-58107CodeChecker's massStoreRun processing path performs one-shot…5.5
- CVE-2026-58108The personal access token removal query selects from Persona…1.2
- CVE-2026-5811A vulnerability was identified in SourceCodester Online Food…5.4
- CVE-2026-58113A vulnerability has been identified in Teamcenter V2412 (All…6.1
- CVE-2026-58115A vulnerability has been identified in SIMATIC IoT2050 Advan…10
- 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
