{"cve":"CVE-2025-46567","nvd":{"published":"2025-05-01T18:15:58.117","modified":"2026-06-17T09:26:38.183","status":"Analyzed","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 arbitrary commands during deserialization. This issue has been patched in version 1.0.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-502"],"references":["https://github.com/hiyouga/LLaMA-Factory/commit/2989d39239d2f46e584c1e1180ba46b9768afb2a","https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpv","https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpv"],"products":["hiyouga:llama-factory"],"source":"nvd","synced_at":"2026-10-19T22:01:22.920403922+00:00"},"epss":{"cve":"CVE-2025-46567","score":0.00285,"percentile":0.21083,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f2f7-gj54-6vpv","url":"https://osv.dev/vulnerability/GHSA-f2f7-gj54-6vpv","summary":"LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py","modified":"2026-09-10T03:50:23.927404812Z","packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<0.9.3"],"fixed":["0.9.3"]}]},{"id":"PYSEC-2026-1574","url":"https://osv.dev/vulnerability/PYSEC-2026-1574","summary":"LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py","modified":"2026-07-07T17:46:54.115506616Z","packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<0.9.3"],"fixed":["0.9.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}