CVE-2025-46567Hiyouga Llama-factory
High 7.8
Follow: this CVE · Hiyouga · Hiyouga Llama-factory We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 1, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-502
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Llama-factory.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | llamafactory |
< 0.9.3 |
0.9.3 |
pip install "llamafactory>=0.9.3" |
| PyPI | llamafactory |
< 0.9.3 |
0.9.3 |
pip install "llamafactory>=0.9.3" |
Per OSV / GitHub Advisories (GHSA-f2f7-gj54-6vpv, PYSEC-2026-1574). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hiyouga | llama-factory | < 1.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Exploit Vendor Advisory