CVE-2025-53002

Source
https://cve.org/CVERecord?id=CVE-2025-53002
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-53002.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-53002
Aliases
Published
2025-06-26T14:40:52.764Z
Modified
2026-07-15T01:49:09.144483756Z
Severity
  • 8.3 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H CVSS Calculator
Summary
LLaMA-Factory Remote Code Execution (RCE) Vulnerability
Details

LLaMA-Factory is a tuning library for large language models. A remote code execution vulnerability was discovered in LLaMA-Factory versions up to and including 0.9.3 during the LLaMA-Factory training process. This vulnerability arises because the vhead_file is loaded without proper safeguards, allowing malicious attackers to execute arbitrary malicious code on the host system simply by passing a malicious Checkpoint path parameter through the WebUI interface. The attack is stealthy, as the victim remains unaware of the exploitation. The root cause is that the vhead_file argument is loaded without the secure parameter weights_only=True. Version 0.9.4 contains a fix for the issue.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53002.json",
    "cwe_ids": [
        "CWE-502",
        "CWE-94"
    ],
    "cna_assigner": "GitHub_M"
}
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
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.9.4"
        }
    ],
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-53002.json"