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.
CVE-2026-58116
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2026-06-30. NVD baseline CVSS 8.8; sources differ by 1.0.
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 8.8
- EG Score
- 9.8(high)
- EPSS
- 39.0%
- KEV
- Not listed
Published
June 30, 2026
Last Modified
July 1, 2026
Advisory Details (2)
Auto-updated Jun 30, 2026LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path | Advisories | VulnCheck
https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-pathRemote Code Execution (RCE) via Model Path Injection in LLaMA-Factory WebUI <= 0.9.4 · GitHub
https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8Vendor Advisories for CVE-2026-58116(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 98× in last 7d / 98× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 03:56 UTCEG score recompute
- 2026-07-07 03:56 UTCGHSA enrichment
- 2026-07-07 00:16 UTCEG score recompute
- 2026-07-07 00:16 UTCGHSA enrichment
- 2026-07-06 20:37 UTCEG score recompute
- 2026-07-06 20:37 UTCGHSA enrichment
- 2026-07-06 16:56 UTCEG score recompute
- 2026-07-06 16:56 UTCGHSA enrichment
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 13:18 UTCEG score recompute
- 2026-07-06 13:18 UTCGHSA enrichment
- 2026-07-06 09:35 UTCEG score recompute
- 2026-07-06 09:35 UTCGHSA enrichment
- 2026-07-06 05:55 UTCEG score recompute
- 2026-07-06 05:54 UTCGHSA enrichment
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:23 UTCEPSS rescore
- 2026-07-06 02:08 UTCEG score recompute
- 2026-07-06 02:07 UTCGHSA enrichment
- 2026-07-05 22:29 UTCEG score recompute
- 2026-07-05 22:29 UTCGHSA enrichment
- 2026-07-05 18:49 UTCEG score recompute
- 2026-07-05 18:49 UTCGHSA enrichment
- 2026-07-05 15:10 UTCEG score recompute
Show 73 moreShow fewer
- 2026-07-05 15:10 UTCGHSA enrichment
- 2026-07-05 11:31 UTCEG score recompute
- 2026-07-05 11:31 UTCGHSA enrichment
- 2026-07-05 07:53 UTCEG score recompute
- 2026-07-05 07:53 UTCGHSA enrichment
- 2026-07-05 04:14 UTCEG score recompute
- 2026-07-05 04:14 UTCGHSA enrichment
- 2026-07-05 02:31 UTCEPSS rescore
- 2026-07-05 02:30 UTCEPSS rescore
- 2026-07-05 00:34 UTCEG score recompute
- 2026-07-05 00:34 UTCGHSA enrichment
- 2026-07-04 20:54 UTCEG score recompute
- 2026-07-04 20:54 UTCGHSA enrichment
- 2026-07-04 17:16 UTCEG score recompute
- 2026-07-04 17:16 UTCGHSA enrichment
- 2026-07-04 13:36 UTCEG score recompute
- 2026-07-04 13:36 UTCGHSA enrichment
- 2026-07-04 09:57 UTCEG score recompute
- 2026-07-04 09:57 UTCGHSA enrichment
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:31 UTCEPSS rescore
- 2026-07-04 06:19 UTCEG score recompute
- 2026-07-04 06:18 UTCGHSA enrichment
- 2026-07-04 02:38 UTCEG score recompute
- 2026-07-04 02:38 UTCGHSA enrichment
- 2026-07-03 22:58 UTCEG score recompute
- 2026-07-03 22:57 UTCGHSA enrichment
- 2026-07-03 19:17 UTCEG score recompute
- 2026-07-03 19:17 UTCGHSA enrichment
- 2026-07-03 15:38 UTCEG score recompute
- 2026-07-03 15:38 UTCGHSA enrichment
- 2026-07-03 12:00 UTCEG score recompute
- 2026-07-03 11:59 UTCGHSA enrichment
- 2026-07-03 08:17 UTCEG score recompute
- 2026-07-03 08:17 UTCGHSA enrichment
- 2026-07-03 04:38 UTCEG score recompute
- 2026-07-03 04:38 UTCGHSA enrichment
- 2026-07-03 00:59 UTCEG score recompute
- 2026-07-03 00:59 UTCGHSA enrichment
- 2026-07-02 21:20 UTCEG score recompute
- 2026-07-02 21:20 UTCGHSA enrichment
- 2026-07-02 17:41 UTCEG score recompute
- 2026-07-02 17:41 UTCGHSA enrichment
- 2026-07-02 14:02 UTCEG score recompute
- 2026-07-02 14:02 UTCGHSA enrichment
- 2026-07-02 10:23 UTCEG score recompute
- 2026-07-02 10:23 UTCGHSA enrichment
- 2026-07-02 06:43 UTCEG score recompute
- 2026-07-02 06:43 UTCGHSA enrichment
- 2026-07-02 03:04 UTCEG score recompute
- 2026-07-02 03:04 UTCGHSA enrichment
- 2026-07-01 23:24 UTCEG score recompute
- 2026-07-01 23:24 UTCGHSA enrichment
- 2026-07-01 19:45 UTCEG score recompute
- 2026-07-01 19:45 UTCGHSA enrichment
- 2026-07-01 17:06 UTCNVD updateCVSS v3 → 8.8 · severity → HIGH
- 2026-07-01 16:06 UTCEG score recompute
- 2026-07-01 16:06 UTCGHSA enrichment
- 2026-07-01 15:07 UTCEPSS rescore
- 2026-07-01 12:25 UTCEG score recompute
- 2026-07-01 12:25 UTCGHSA enrichment
- 2026-07-01 08:46 UTCEG score recompute
- 2026-07-01 08:46 UTCGHSA enrichment
- 2026-07-01 05:07 UTCEG score recompute
- 2026-07-01 05:07 UTCGHSA enrichment
- 2026-07-01 01:29 UTCEG score recompute
- 2026-07-01 01:29 UTCGHSA enrichment
- 2026-06-30 21:50 UTCEG score recompute
- 2026-06-30 21:50 UTCGHSA enrichment
- 2026-06-30 18:11 UTCEG score recompute
- 2026-06-30 18:11 UTCGHSA enrichment
- 2026-06-30 14:33 UTCEG score recompute
- 2026-06-30 14:32 UTCNVD updatefirst tracked
Related CVEs(same CWE)
Same CWE
10 shownCWE-829 · CWE-94
- CVE-2004-0285EG 9.8EPSS 94%CRITICAL
- CVE-2004-0030EG 9.8EPSS 94%CRITICAL
- CVE-2005-1921NVD 0.0EG 9.0EPSS 100%NONE
- CVE-2005-3302EG 7.3HIGH
- CVE-2005-1876EG 4.5MEDIUM
- CVE-2003-1599EG 0.0NONE
- CVE-2006-1301EG 0.0EPSS 95%NONE
- CVE-2006-1308EG 0.0EPSS 95%NONE
- CVE-2006-1309EG 0.0EPSS 95%NONE
- CVE-2006-1304EG 0.0EPSS 95%NONE
Frequently asked(5)
What is CVE-2026-58116?
When was CVE-2026-58116 disclosed?
Is CVE-2026-58116 actively exploited?
What is the CVSS score of CVE-2026-58116?
How do I remediate CVE-2026-58116?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2026-58116
Is Your Infrastructure Affected by CVE-2026-58116?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.