CVE-2026-58116: LLaMA-Factory through 0.9.5 contains a remote code execution vulnerability that allows attackers with WebUI ac
CVE-2026-58116 is a critical-severity flaw (CVSS 9.8) affecting llama-factory. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 librar
Why this priority
- Critical severity
- Public exploit reference
- CISA SSVC: automatable with total technical impact
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Last updated 2026-10-25 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: Hunt-Benito/llama-factory-webui-rce-cve-2026-58116-trust-remote-code-model-path-injection (0 stars)
- Write-up: gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-58116?
llama-factory: upgrade to newer than 0.9.5. Exact commands for each OS are on this page.
Is CVE-2026-58116 being exploited?
CVE-2026-58116 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-58116 affect?
CVE-2026-58116 affects llama-factory. Severity is critical (CVSS 9.8). 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 pass
How urgent is CVE-2026-58116?
Priority 62/100. Critical severity; Public exploit reference; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action
Software pages
Python vulnerabilities · OpenAI and LLM tools vulnerabilities