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(medium)
- EG Risk
- 75(Attend)EG Risk 75/100SSVC: Attend
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation40% × 40%Automatability100% × 15%Action: Remediate soon — notable exploitation risk. - EPSS PROB
- 1%
- EPSS %ILE
- 57%
- KEV
- Not listed
Published
June 30, 2026
Last Modified
July 14, 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 40× in last 7d / 222× 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.
Showing the most recent 100 of 387 total refreshes for this CVE.
- 2026-08-25 13:49 UTCEPSS rescore
- 2026-08-25 05:06 UTCGHSA enrichment
- 2026-08-25 01:26 UTCGHSA enrichment
- 2026-08-24 21:45 UTCGHSA enrichment
- 2026-08-24 15:23 UTCEG score recompute
- 2026-08-24 15:23 UTCGHSA enrichment
- 2026-08-24 11:44 UTCEG score recompute
- 2026-08-24 11:44 UTCGHSA enrichment
- 2026-08-24 04:26 UTCGHSA enrichment
- 2026-08-23 23:07 UTCGHSA enrichment
- 2026-08-23 19:25 UTCGHSA enrichment
- 2026-08-23 15:46 UTCGHSA enrichment
- 2026-08-23 12:08 UTCGHSA enrichment
- 2026-08-23 08:27 UTCGHSA enrichment
- 2026-08-23 04:29 UTCGHSA enrichment
- 2026-08-23 00:49 UTCEG score recompute
- 2026-08-23 00:49 UTCGHSA enrichment
- 2026-08-23 00:19 UTCEPSS rescore
- 2026-08-22 20:39 UTCGHSA enrichment
- 2026-08-22 12:42 UTCGHSA enrichment
- 2026-08-22 08:28 UTCEG score recompute
- 2026-08-22 08:28 UTCGHSA enrichment
- 2026-08-21 23:49 UTCEPSS rescore
- 2026-08-21 23:09 UTCGHSA enrichment
- 2026-08-21 19:28 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-08-21 15:49 UTCGHSA enrichment
- 2026-08-21 12:09 UTCGHSA enrichment
- 2026-08-21 08:30 UTCGHSA enrichment
- 2026-08-21 04:51 UTCGHSA enrichment
- 2026-08-20 23:14 UTCEG score recompute
- 2026-08-20 23:14 UTCGHSA enrichment
- 2026-08-20 22:55 UTCEPSS rescore
- 2026-08-20 19:34 UTCGHSA enrichment
- 2026-08-20 15:56 UTCGHSA enrichment
- 2026-08-20 09:18 UTCGHSA enrichment
- 2026-08-20 05:37 UTCEG score recompute
- 2026-08-20 05:37 UTCGHSA enrichment
- 2026-08-19 17:04 UTCEPSS rescore
- 2026-08-19 16:30 UTCGHSA enrichment
- 2026-08-19 12:35 UTCGHSA enrichment
- 2026-08-19 07:41 UTCGHSA enrichment
- 2026-08-19 03:56 UTCGHSA enrichment
- 2026-08-18 23:05 UTCEG score recompute
- 2026-08-18 23:05 UTCGHSA enrichment
- 2026-08-18 13:48 UTCEPSS rescore
- 2026-08-18 06:22 UTCGHSA enrichment
- 2026-08-17 14:50 UTCEG score recompute
- 2026-08-17 14:50 UTCGHSA enrichment
- 2026-08-17 13:47 UTCEPSS rescore
- 2026-08-17 11:11 UTCGHSA enrichment
- 2026-08-17 07:32 UTCGHSA enrichment
- 2026-08-17 03:54 UTCGHSA enrichment
- 2026-08-17 00:15 UTCGHSA enrichment
- 2026-08-16 20:36 UTCGHSA enrichment
- 2026-08-16 16:57 UTCEG score recompute
- 2026-08-16 16:57 UTCGHSA enrichment
- 2026-08-16 14:56 UTCEPSS rescore
- 2026-08-16 13:18 UTCGHSA enrichment
- 2026-08-16 09:40 UTCGHSA enrichment
- 2026-08-16 06:01 UTCGHSA enrichment
- 2026-08-16 02:23 UTCEG score recompute
- 2026-08-16 02:23 UTCGHSA enrichment
- 2026-08-16 02:14 UTCEPSS rescore
- 2026-08-15 22:45 UTCGHSA enrichment
- 2026-08-15 19:06 UTCGHSA enrichment
- 2026-08-15 15:27 UTCGHSA enrichment
- 2026-08-15 11:48 UTCGHSA enrichment
- 2026-08-15 08:09 UTCGHSA enrichment
- 2026-08-15 03:37 UTCEG score recompute
- 2026-08-15 03:37 UTCGHSA enrichment
- 2026-08-15 01:30 UTCEPSS rescore
- 2026-08-14 23:58 UTCGHSA enrichment
- 2026-08-14 20:19 UTCGHSA enrichment
- 2026-08-14 16:39 UTCGHSA enrichment
- 2026-08-14 12:50 UTCGHSA enrichment
- 2026-08-14 09:11 UTCGHSA enrichment
- 2026-08-14 05:33 UTCGHSA enrichment
- 2026-08-14 01:54 UTCGHSA enrichment
- 2026-08-13 22:16 UTCEG score recompute
- 2026-08-13 22:16 UTCGHSA enrichment
- 2026-08-13 22:00 UTCEPSS rescore
- 2026-08-13 18:37 UTCGHSA enrichment
- 2026-08-13 14:58 UTCGHSA enrichment
- 2026-08-13 11:19 UTCGHSA enrichment
- 2026-08-13 07:41 UTCGHSA enrichment
- 2026-08-13 03:46 UTCGHSA enrichment
- 2026-08-13 00:08 UTCGHSA enrichment
- 2026-08-12 20:29 UTCGHSA enrichment
- 2026-08-12 16:51 UTCEG score recompute
- 2026-08-12 16:51 UTCGHSA enrichment
- 2026-08-12 13:51 UTCEPSS rescore
- 2026-08-12 13:12 UTCGHSA enrichment
- 2026-08-12 09:33 UTCGHSA enrichment
- 2026-08-12 05:54 UTCGHSA enrichment
- 2026-08-12 02:01 UTCGHSA enrichment
- 2026-08-11 22:22 UTCGHSA enrichment
- 2026-08-11 18:44 UTCGHSA enrichment
- 2026-08-11 14:59 UTCEG score recompute
- 2026-08-11 14:59 UTCGHSA enrichment
- 2026-08-11 11:19 UTCGHSA enrichment
Related CVEs(same CWE)
Same CWE
10 shownCWE-94 · CWE-829
- CVE-2003-1432EG 10.0EPSS p94HIGH
- CVE-2002-0495EG 10.0EPSS p96HIGH
- CVE-1999-0702EG 10.0EPSS p98HIGH
- CVE-1999-0509EG 10.0EPSS p98HIGH
- CVE-2004-0285EG 9.8EPSS p94CRITICAL
- CVE-2004-0030EG 9.8EPSS p94CRITICAL
- CVE-2006-1301EG 9.3EPSS p95HIGH
- CVE-2006-1308EG 9.3EPSS p95HIGH
- CVE-2006-1309EG 9.3EPSS p95HIGH
- CVE-2006-1304EG 9.3EPSS p96HIGH
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.