CVE-2026-58116
published critical CVSS 4.0 · 9.3LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hiyouga | — | LlamaFactory0 through 0.9.5 · Other versions: affected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hiyouga | LlamaFactory | 0 through 0.9.5 (affected · semver)Default: affected | VulnCheck · cna |
Weaknesses
2- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
- CWE-94 Improper Control of Generation of Code ('Code Injection')
References
2- Researcher Disclosure https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8
- https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-path
Provider assertions
2VulnCheck · cna
LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2ddc77637a315ec6cf0e1fc0fd827fa436b487d6e04fac156df637d9643bdb8d
- Ingested
- 23 Sep 2026, 09:22:08 UTC
- Source record
- Official CVE record