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)
- 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
- 39.6%
- 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 15× in last 7d / 149× 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 149 total refreshes for this CVE.
- 2026-07-23 03:20 UTCEG score recompute
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-22 14:08 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-21 15:25 UTCEPSS rescore
- 2026-07-20 17:08 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 14:31 UTCEPSS rescore
- 2026-07-19 02:29 UTCEPSS rescore
- 2026-07-18 10:04 UTCEPSS rescore
- 2026-07-17 03:08 UTCGHSA enrichment
- 2026-07-16 23:29 UTCGHSA enrichment
- 2026-07-16 19:51 UTCGHSA enrichment
- 2026-07-16 17:03 UTCEPSS rescore
- 2026-07-16 16:10 UTCGHSA enrichment
- 2026-07-16 12:28 UTCGHSA enrichment
- 2026-07-16 08:45 UTCGHSA enrichment
- 2026-07-16 05:06 UTCGHSA enrichment
- 2026-07-16 01:27 UTCGHSA enrichment
- 2026-07-15 21:48 UTCGHSA enrichment
- 2026-07-15 18:05 UTCGHSA enrichment
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 16:57 UTCEPSS rescore
- 2026-07-15 14:23 UTCGHSA enrichment
- 2026-07-15 10:42 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-15 06:52 UTCGHSA enrichment
- 2026-07-15 03:13 UTCGHSA enrichment
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-15 02:00 UTCEPSS rescore
- 2026-07-14 23:34 UTCGHSA enrichment
- 2026-07-14 23:23 UTCNVD updateCVSS v3 → 8.8 · severity → HIGH
- 2026-07-14 21:35 UTCMITRE cvelistV5CVSS v3 → 9.8 · severity → CRITICAL
- 2026-07-14 19:54 UTCGHSA enrichment
- 2026-07-14 16:15 UTCGHSA enrichment
- 2026-07-14 12:36 UTCGHSA enrichment
- 2026-07-14 08:57 UTCGHSA enrichment
- 2026-07-14 05:18 UTCGHSA enrichment
- 2026-07-14 01:39 UTCGHSA enrichment
- 2026-07-13 22:31 UTCEPSS rescore
- 2026-07-13 22:00 UTCGHSA enrichment
- 2026-07-13 18:21 UTCGHSA enrichment
- 2026-07-13 14:41 UTCGHSA enrichment
- 2026-07-13 11:01 UTCGHSA enrichment
- 2026-07-13 07:22 UTCGHSA enrichment
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 06:13 UTCEPSS rescore
- 2026-07-13 03:42 UTCGHSA enrichment
- 2026-07-13 00:03 UTCGHSA enrichment
- 2026-07-12 20:24 UTCGHSA enrichment
- 2026-07-12 16:45 UTCGHSA enrichment
- 2026-07-12 13:05 UTCGHSA enrichment
- 2026-07-12 09:26 UTCGHSA enrichment
- 2026-07-12 05:47 UTCGHSA enrichment
- 2026-07-12 05:46 UTCEPSS rescore
- 2026-07-12 02:08 UTCGHSA enrichment
- 2026-07-11 22:29 UTCGHSA enrichment
- 2026-07-11 18:50 UTCGHSA enrichment
- 2026-07-11 15:11 UTCGHSA enrichment
- 2026-07-11 11:32 UTCGHSA enrichment
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 08:27 UTCEPSS rescore
- 2026-07-11 07:54 UTCGHSA enrichment
- 2026-07-11 04:15 UTCGHSA enrichment
- 2026-07-11 00:36 UTCGHSA enrichment
- 2026-07-10 20:57 UTCGHSA enrichment
- 2026-07-10 17:19 UTCGHSA enrichment
- 2026-07-10 13:40 UTCGHSA enrichment
- 2026-07-10 09:59 UTCGHSA enrichment
- 2026-07-10 06:20 UTCGHSA enrichment
- 2026-07-10 02:41 UTCGHSA enrichment
- 2026-07-09 22:54 UTCGHSA enrichment
- 2026-07-09 19:16 UTCGHSA enrichment
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 19:10 UTCEPSS rescore
- 2026-07-09 15:33 UTCGHSA enrichment
- 2026-07-09 11:54 UTCGHSA enrichment
- 2026-07-09 08:15 UTCGHSA enrichment
- 2026-07-09 04:35 UTCGHSA enrichment
- 2026-07-09 00:57 UTCGHSA enrichment
- 2026-07-08 21:18 UTCGHSA enrichment
- 2026-07-08 17:31 UTCGHSA enrichment
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-08 15:16 UTCEPSS rescore
- 2026-07-08 13:52 UTCGHSA enrichment
- 2026-07-08 10:07 UTCGHSA enrichment
- 2026-07-08 06:27 UTCGHSA enrichment
- 2026-07-08 02:48 UTCGHSA enrichment
- 2026-07-07 23:08 UTCGHSA enrichment
- 2026-07-07 19:30 UTCGHSA enrichment
- 2026-07-07 15:39 UTCGHSA enrichment
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-07 13:46 UTCEPSS rescore
- 2026-07-07 11:16 UTCGHSA enrichment
- 2026-07-07 07:37 UTCGHSA enrichment
- 2026-07-07 03:56 UTCGHSA enrichment
- 2026-07-07 00:16 UTCGHSA enrichment
- 2026-07-06 20:37 UTCGHSA enrichment
- 2026-07-06 16:56 UTCGHSA enrichment
- 2026-07-06 16:27 UTCEPSS rescore
- 2026-07-06 16:27 UTCEPSS rescore
Related CVEs(same CWE)
Same CWE
10 shownCWE-829 · CWE-94
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.