Medium severity6.1NVD Advisory· Published May 1, 2025· Updated Jun 17, 2026
CVE-2025-46567
CVE-2025-46567
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
llamafactoryPyPI | < 0.9.3 | 0.9.3 |
Affected products
3cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*range: <1.0.0
- (no CPE)range: < 1.0.0
Patches
Vulnerability mechanics
References
5- github.com/hiyouga/LLaMA-Factory/commit/2989d39239d2f46e584c1e1180ba46b9768afb2anvdPatchWEB
- github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpvnvdExploitVendor AdvisoryWEB
- github.com/advisories/GHSA-f2f7-gj54-6vpvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-46567ghsaADVISORY
- github.com/hiyouga/LLaMA-Factory/blob/main/scripts/convert_ckpt/llamafy_baichuan2.pyghsaWEB
News mentions
0No linked articles in our index yet.