CVE-2025-46567
Last modified
CVE-2025-46567 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.23% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hiyouga | Llama-Factory | < 1.0.0 |
References
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpvExploit, Vendor Advisory
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpvExploit, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-46567?
How severe is CVE-2025-46567?
How do I fix CVE-2025-46567?
Are you affected by CVE-2025-46567?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
