Skip to content

CVE-2024-52803 LLama Factory Remote OS Command Injection Vulnerability

CriticalCVSS 9.8 EPSS 2.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

3 packages: 3 fixed.

PackageAffectedFixed inStatus
hiyouga LLaMA-Factory < 0.9.1; = < 0.9.1 0.9.1 Fixed
llama-factory < 0.9.1 0.9.1 Fixed
pypi llamafactory(PyPI) < 0.9.1; <= 0.9.0; = 0.7.1; = 0.8.0 +4 more 0.9.1 Fixed

Affected products

ProductAffected versionsFixed in
pypi llamafactory(PyPI) < 0.9.1 0.9.1
pypi llamafactory(PyPI) = 0.7.1 No fix listed
pypi llamafactory(PyPI) = 0.8.0 No fix listed
pypi llamafactory(PyPI) = 0.8.1 No fix listed
pypi llamafactory(PyPI) = 0.8.2 No fix listed
pypi llamafactory(PyPI) = 0.8.3 No fix listed
pypi llamafactory(PyPI) = 0.9.0 No fix listed
pypi llamafactory(PyPI) <= 0.9.0 No fix listed
hiyouga LLaMA-Factory = < 0.9.1 No fix listed
llama-factory < 0.9.1 0.9.1
hiyouga LLaMA-Factory < 0.9.1 0.9.1

References