Skip to content
OpenAdvisories
High · 7.5 CVE-2024-52803 EUVD-2024-3357GHSA-hj3w-wrh4-44vpPYSEC-2026-1575

LLama Factory Remote OS Command Injection Vulnerability

Published Nov 21, 2024 · Updated Nov 21, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
hiyouga LLaMA-Factory < 0.9.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llamafactory < 0.9.1 0.9.1 GHSA-hj3w-wrh4-44vp

References