RCE in Hiyouga Llama-Factory
CVE-2025-53002
- CVSS v3
- 8.3 High
- Public exploits
- None known
- EPSS
- 0.013 · 70.3th percentile
- Published
- 2025-06-26
What to do
- Fixed in
0.9.4- Affected
- 1 affected product
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.3 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- Low
I:L - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.013, 70.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Hiyouga Llama-Factory — versions < 0.9.4
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Threekiii/CVE). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-xj56-p8mm-qmxj (Exploit, Third Party Advisory)
- https://github.com/hiyouga/LLaMA-Factory/commit/bb7bf51554d4ba8432333c35a5e3b52705955ede (Patch)
- https://drive.google.com/file/d/1AddKm2mllsXfuvL4Tvbn_WJdjEOYXx4y/view?usp=sharing (Exploit)