{"id":"CVE-2024-52803","published":"2024-11-21T16:53:18Z","modified":"2024-11-21T21:12:06Z","title":"LLama Factory Remote OS Command Injection Vulnerability","vendor":"hiyouga","product":"LLaMA-Factory","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02323,"percentile":0.83897,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac","tags":["x_refsource_MISC"]},{"url":"https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d","tags":["x_refsource_MISC"]}],"priority":{"score":22.0,"factors":[{"name":"EPSS percentile","points":16.78},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"hiyouga","affectedVersions":[{"vendor":"hiyouga","product":"LLaMA-Factory","versions":["< 0.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-21T21:05:38.878255Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llamafactory","vulnerableRanges":["<0.9.1"],"patched":["0.9.1"],"from":["GHSA-hj3w-wrh4-44vp","PYSEC-2026-1575"],"provenance":"source"}],"summary":{"text":"The LLaMA-Factory product from hiyouga contains a remote OS command injection flaw in its training process, where user input is unsanitized and passed to a Popen call using shell=True. An attacker with network access, requiring no privileges and no user interaction, can execute arbitrary OS commands on the host system, with a high impact on confidentiality and none on integrity or availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:52:22Z"},"euvd":{"id":"EUVD-2024-3357","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-52803","published":"2024-11-21","fixed":"0.9.1","kev":false},{"cve":"CVE-2025-46567","published":"2025-05-01","fixed":"0.9.3","kev":false,"link":{"from":"CVE-2024-52803","to":"CVE-2025-46567","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llamafactory","fromFixed":"0.9.1","toFixed":"0.9.3","daysApart":161}]}},{"cve":"CVE-2025-61784","published":"2025-10-07","fixed":"0.9.4","kev":false}],"package":"PyPI:llamafactory"}}