{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-53002","id":"CVE-2025-53002","title":"LLaMA-Factory Remote Code Execution (RCE) Vulnerability","description":"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","descriptionLong":"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.","published":"2025-06-26T14:40:52.764Z","updated":"2026-10-28T02:30:38.184575462Z","reserved":"2025-06-24T03:50:36.795Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"github.com"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"NVD"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H","rating":"high","source":"GitHub"}],"rating":"high","products":["hiyouga LLaMA-Factory"],"affectedProducts":[{"vendor":"hiyouga","product":"LLaMA-Factory","defaultStatus":null,"versions":[{"version":"< 0.9.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<=0.9.3"],"fixed":[],"advisory":"GHSA-xj56-p8mm-qmxj"}],"cwes":["CWE-94","CWE-502"],"aliases":["GHSA-xj56-p8mm-qmxj","PYSEC-2026-1576"],"references":[{"url":"https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-xj56-p8mm-qmxj","tags":["x_refsource_CONFIRM","Exploit","Third Party Advisory","advisory","web"]},{"url":"https://github.com/hiyouga/LLaMA-Factory/commit/bb7bf51554d4ba8432333c35a5e3b52705955ede","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://drive.google.com/file/d/1AddKm2mllsXfuvL4Tvbn_WJdjEOYXx4y/view?usp=sharing","tags":["x_refsource_MISC","Exploit","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53002.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53002","tags":["advisory"]},{"url":"https://github.com/hiyouga/LLaMA-Factory","tags":["package"]},{"url":"https://pypi.org/project/llamafactory","tags":["package"]},{"url":"https://github.com/advisories/GHSA-xj56-p8mm-qmxj","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0127,"epssPercentile":0.70445,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-53002","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53002","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-53002","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xj56-p8mm-qmxj","ok":true,"note":"GHSA-xj56-p8mm-qmxj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-53002","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}