{"cve":"CVE-2024-52803","nvd":{"published":"2024-11-21T17:15:24.470","modified":"2026-06-17T08:07:39.417","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-78","CWE-79"],"references":["https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d","https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac","https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp"],"products":["hiyouga:llama-factory"],"source":"nvd","synced_at":"2026-10-19T21:57:34.731061660+00:00"},"epss":{"cve":"CVE-2024-52803","score":0.02323,"percentile":0.83491,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hj3w-wrh4-44vp","url":"https://osv.dev/vulnerability/GHSA-hj3w-wrh4-44vp","summary":"LLama Factory Remote OS Command Injection Vulnerability","modified":"2026-07-07T17:57:01.974419386Z","packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<0.9.1"],"fixed":["0.9.1"]}]},{"id":"PYSEC-2026-1575","url":"https://osv.dev/vulnerability/PYSEC-2026-1575","summary":"LLama Factory Remote OS Command Injection Vulnerability","modified":"2026-07-07T17:46:54.137593969Z","packages":[{"ecosystem":"PyPI","name":"llamafactory","purl":"pkg:pypi/llamafactory","ranges":["<0.9.1"],"fixed":["0.9.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}