CVE-2025-46567

Source
https://cve.org/CVERecord?id=CVE-2025-46567
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46567.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-46567
Aliases
Published
2025-05-01T17:20:41.020Z
Modified
2026-04-10T05:28:27.148182Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:L CVSS Calculator
Summary
LLaMA-Factory Allows Arbitrary Code Execution via Unsafe Deserialization in Ilamafy_baichuan2.py
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-502"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/46xxx/CVE-2025-46567.json"
}
References

Affected packages

Git / github.com/hiyouga/llamafactory

Affected ranges

Type
GIT
Repo
https://github.com/hiyouga/llamafactory
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-46567.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "1.0.0"
            }
        ]
    }
]