{"id":"CVE-2026-58116","aliases":["CVE-2026-58116"],"related":[],"kind":"vulnerability","state":"published","title":"LLaMA-Factory 0.9.5 Remote Code Execution via WebUI Model Path","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"LLaMA-Factory hasta la versión 0.9.5 contiene una vulnerabilidad de ejecución remota de código que permite a atacantes con acceso a la interfaz de usuario web (WebUI) ejecutar código Python arbitrario al proporcionar una ruta de modelo maliciosa en las interfaces de Chat o Entrenamiento. La aplicación pasa la entrada de la ruta del modelo proporcionada por el usuario sin validar a AutoTokenizer.from_pretrained() y AutoModel.from_pretrained() con un parámetro trust_remote_code=True codificado de forma rígida, lo que hace que la biblioteca Hugging Face transformers obtenga y ejecute código arbitrario desde un repositorio de modelos remoto o local con los privilegios del proceso del servidor.","source":"nvd"}],"published":"2026-06-30T12:54:24.700Z","modified":"2026-10-25T21:10:00.770Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"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","score":9.3,"rating":"CRITICAL"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-829"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"0.9.5","status":"affected"}],"vendor":"hiyouga","product":"LlamaFactory","repo":"https://github.com/hiyouga/LlamaFactory","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"0.9.5"}],"vendor":"hiyouga","product":"llama-factory","cpe":"cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://gist.github.com/henrrrychau/08d76ec672f42136bbc1449c4f2973f8","tags":["exploit","mitigation","technical-description","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/llama-factory-remote-code-execution-via-webui-model-path","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["h3nrrrych4u"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-06-30T14:04:48.098Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58116","url":"https://www.cve.org/CVERecord?id=CVE-2026-58116","licence":"CVE Terms of Use","modified":"2026-07-14T21:34:48.512Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58116","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58116","licence":"Public domain","modified":"2026-10-25T21:10:00.770Z"}],"updatedAt":"2026-11-25T22:59:26.697Z","epss":{"score":0.00643,"percentile":0.52169,"date":"2026-12-01T12:00:22.000Z"}}