CVE-2025-53002

Source
https://nvd.nist.gov/vuln/detail/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-26T15:15:23Z
Modified
2025-06-27T11:13:57.078345Z
Summary
[none]
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.

References

Affected packages

Git / github.com/hiyouga/llama-factory

Affected ranges

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

Affected versions

v0.*

v0.0.9
v0.1.0
v0.1.1
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.2.0
v0.2.1
v0.2.2
v0.3.0
v0.3.2
v0.3.3
v0.4.0
v0.5.0
v0.5.2
v0.5.3
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.7.0
v0.7.1
v0.8.0
v0.8.1
v0.8.2
v0.8.3
v0.9.0
v0.9.1
v0.9.2
v0.9.3