CVE & CISA-KEV Catalog

CVE-2026-58116

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

No published remediation has been found for this vulnerability's affected products yet.

Mitigation guidance may be in the linked vendor advisories in the References section below.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.52%probability of exploitation in 30 days
40thpercentile

Low risk: more likely to be exploited than 40% of all known CVEs.

References

Third-Party Advisory1
Embed a live status badge for CVE-2026-58116
CVE-2026-58116 severity badge

Markdown

[![CVE-2026-58116](https://tridentstack.com/cve/badge/CVE-2026-58116.svg)](https://tridentstack.com/cve/CVE-2026-58116)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-58116"><img src="https://tridentstack.com/cve/badge/CVE-2026-58116.svg" alt="CVE-2026-58116"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-07-01.