CVE-2025-46567 – LLaMA Factory Deserialization Command Execution Vulnerability

The following table lists the changes that have been made to the
CVE-2025-46567 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution
of a vulnerability, and for identifying the most recent changes that may
impact the vulnerability’s severity, exploitability, or other characteristics.

  • New CVE Received
    by [email protected]

    May. 01, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L
    Added CWE CWE-502
    Added Reference https://github.com/hiyouga/LLaMA-Factory/commit/2989d39239d2f46e584c1e1180ba46b9768afb2a
    Added Reference https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-f2f7-gj54-6vpv
Share the Post:

Related Posts