CVE-2024-52803
CRITICAL 9.8CVSS 3.1LLama Factory Remote OS Command Injection Vulnerability
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
- 21 Nov 2024
- Last modified
- 7 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78CWE-79
- Also known as
- GHSA-hj3w-wrh4-44vpPYSEC-2026-1575
- Sources
- NVDJSONOSV GHSA-hj3w-wrh4-44vpJSONOSV PYSEC-2026-1575JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hiyouga | llama-factorycpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:* |
< 0.9.1 | 0.9.1 |
| OSV | PyPI | llamafactory | < 0.9.1 | 0.9.1 |
References
- https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d · Exploit, WEB
- https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac · Patch, WEB
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-52803 · ADVISORY
- https://github.com/hiyouga/LLaMA-Factory · PACKAGE
- https://pypi.org/project/llamafactory · PACKAGE
- https://github.com/advisories/GHSA-hj3w-wrh4-44vp · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 21 Nov 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Nov 2024)