Deserialization in Hiyouga Llama-Factory
CVE-2025-46567
- CVSS v3
- 6.1 Medium
- Public exploits
- None known
- EPSS
- 0.003 · 21.3th percentile
- Published
- 2025-05-01
What to do
- Fixed in
1.0.0- Affected
- 1 affected product
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.
Vulnerability class: Insecure Deserialization
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.003, 21.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Hiyouga Llama-Factory — versions < 1.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.