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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*

History

27 Aug 2025, 16:42

Type Values Removed Values Added
References () https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d - () https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d - Exploit
References () https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac - () https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac - Patch
References () https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp - () https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp - Exploit, Vendor Advisory
Summary
  • (es) LLama Factory permite el ajuste fino de modelos de lenguaje de gran tamaño. Se ha identificado una vulnerabilidad crítica de inyección remota de comandos del sistema operativo en el proceso de entrenamiento de LLama Factory. Esta vulnerabilidad surge del manejo inadecuado de la entrada del usuario, lo que permite que actores maliciosos ejecuten comandos arbitrarios del sistema operativo en el sistema host. El problema se debe al uso inseguro de la función `Popen` con `shell=True`, junto con una entrada del usuario no desinfectada. Se requiere una solución inmediata para mitigar el riesgo. Esta vulnerabilidad se solucionó en la versión 0.9.1.
CPE cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*
First Time Hiyouga llama-factory
Hiyouga
CWE CWE-78

21 Nov 2024, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-11-21 17:15

Updated : 2025-08-27 16:42


NVD link : CVE-2024-52803

Mitre link : CVE-2024-52803

CVE.ORG link : CVE-2024-52803


JSON object : View

Products Affected

hiyouga

  • llama-factory
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')