{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-46567","id":"CVE-2025-46567","title":"LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py","description":"LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in the `llamafy_baichuan2.py` script of the LLaMA-Factory project. The script performs insecure deserialization using `torch.load()` on user-supplied `.bin` files from an input directory. An attacker can exploit this behavior by crafting a malicious `.bin` file that executes arbitrar","descriptionLong":"LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in the `llamafy_baichuan2.py` script of the LLaMA-Factory project. The script performs insecure deserialization using `torch.load()` on user-supplied `.bin` files from an input directory. An attacker can exploit this behavior by crafting a malicious `.bin` file that executes arbitrary commands during deserialization. This issue has been patched in version 1.0.0.","published":"2025-05-01T17:20:41.020Z","updated":"2026-10-28T02:31:13.327339738Z","reserved":"2025-04-24T21:10:48.175Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"github.com"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["hiyouga LLaMA-Factory"],"affectedProducts":[{"vendor":"hiyouga","product":"LLaMA-Factory","defaultStatus":null,"versions":[{"version":"< 1.0.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<0.9.3"],"fixed":["0.9.3"],"advisory":"GHSA-f2f7-gj54-6vpv"}],"cwes":["CWE-502"],"aliases":["GHSA-f2f7-gj54-6vpv","PYSEC-2026-1574"],"references":[{"url":"https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpv","tags":["x_refsource_CONFIRM","exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/hiyouga/LLaMA-Factory/commit/2989d39239d2f46e584c1e1180ba46b9768afb2a","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46567.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46567","tags":["advisory"]},{"url":"https://github.com/hiyouga/LLaMA-Factory","tags":["package"]},{"url":"https://github.com/hiyouga/LLaMA-Factory/blob/main/scripts/convert_ckpt/llamafy_baichuan2.py#L35","tags":["web"]},{"url":"https://pypi.org/project/llamafactory","tags":["package"]},{"url":"https://github.com/advisories/GHSA-f2f7-gj54-6vpv","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.00285,"epssPercentile":0.21416,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-46567","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46567","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-46567","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-f2f7-gj54-6vpv","ok":true,"note":"GHSA-f2f7-gj54-6vpv"},{"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-46567","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}