CVE-2024-52803
LLama Factory enables fine-tuning of large language models. A critical remote OS command injection vulnerability has been identified in the LLama Factory training process. This vulnerability arises from improper handling of user input, allowing malicious actors to execute arbitrary OS commands on the host system. The issue is caused by insecure usage of the `Popen` function with `shell=True`, coupled with unsanitized user input. Immediate remediation is required to mitigate the risk. This vulnerability is fixed in 0.9.1.
Published:Nov 21, 2024
Last Modified:Aug 27, 2025
EPS:Nov 21, 2024
EPSS Score:0.0407
CVSS Score:7.5
Affected Products
Vendor
Product
Action
Vendor
Hiyouga
Product
Llama-factory
Hiyouga
Llama-factory
Vendor
Llama-factory
Product
Llama-factory
Llama-factory
Llama-factory
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
