CVE-2025-53002 Details
Description
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.
A remote code execution vulnerability exists in LLaMA-Factory versions through 0.9.3. During the training process, the 'vhead_file' is loaded without adequate security measures, allowing attackers to execute arbitrary code on the host system. This exploitation is achieved by passing a malicious 'Checkpoint path' parameter through the 'WebUI' interface. The vulnerability goes unnoticed by the victim. The issue arises because the 'vhead_file' argument is loaded without the secure parameter 'weights_only=True'.
Users can update to LLaMA-Factory version 0.9.4, which addresses this vulnerability by ensuring the 'vhead_file' is loaded with the 'weights_only=True' parameter.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 26, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| hiyouga llama-factory | < 0.9.4 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 2, 2025 | Initial Analysis | [email protected] |
| Jun 26, 2025 | New CVE Received | [email protected] |