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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac patch
- https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d exploit
- github.com product
- pypi.org product
- github.com vendor-advisory