Paper/Archive/CVE-2024-52803

CVE-2024-52803

hiyouga LLaMA-Factory — LLama Factory Remote OS Command Injection Vulnerability

Description · from the CVE record

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

ProductAffectedFixed inSource
LLaMA-Factory< 0.9.1–CNA
llama-factory< 0.9.10.9.1CISA-ADP

Scores by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub_M (CNA)7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: partial

References

refgithub.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vprefgithub.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2acrefgist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d