{"id":"CVE-2025-53002","published":"2025-06-26T14:40:52Z","modified":"2025-06-26T15:12:51Z","title":"LLaMA-Factory Remote Code Execution (RCE) Vulnerability","vendor":"hiyouga","product":"LLaMA-Factory","tier":"tail","description":{"text":"LLaMA-Factory is a tuning library for large language models. A remote code execution vulnerability was discovered in LLaMA-Factory versions up to and including 0.9.3 during the LLaMA-Factory training process. This vulnerability arises because the `vhead_file` is loaded without proper safeguards, allowing malicious attackers to execute arbitrary malicious code on the host system simply by passing a malicious `Checkpoint path` parameter through the `WebUI` interface. The attack is stealthy, as the victim remains unaware of the exploitation. The root cause is that the `vhead_file` argument is loaded without the secure parameter `weights_only=True`. Version 0.9.4 contains a fix for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01364,"percentile":0.72509,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"references":[{"url":"https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-xj56-p8mm-qmxj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hiyouga/LLaMA-Factory/commit/bb7bf51554d4ba8432333c35a5e3b52705955ede","tags":["x_refsource_MISC"]},{"url":"https://drive.google.com/file/d/1AddKm2mllsXfuvL4Tvbn_WJdjEOYXx4y/view?usp=sharing","tags":["x_refsource_MISC"]}],"priority":{"score":20.3,"factors":[{"name":"EPSS percentile","points":14.5},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"hiyouga","affectedVersions":[{"vendor":"hiyouga","product":"LLaMA-Factory","versions":["< 0.9.4"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-06-26T15:05:57.527009Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llamafactory","vulnerableRanges":["<=0.9.3"],"patched":[],"from":["GHSA-xj56-p8mm-qmxj","PYSEC-2026-1576"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-19200","exploited":false,"provenance":"source"}}