CVE-2024-52803 json
LLama Factory Remote OS Command Injection Vulnerability
published 2024-11-21 23 mo ago modified 2026-07-07 4 mo ago also EUVD-2024-3357 , GHSA-hj3w-wrh4-44vp , PYSEC-2026-1575
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.3%
- EPSS 2.3% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi llamafactory 0.9.1
- llama-factory llama-factory 0.9.1
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
2.32% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp referenced PoC, tagged "exploit" by a source, unverified
- gist.github.com https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llamafactory | <0.9.1 |
0.9.1 |
Affected products
- hiyouga LLaMA-Factory
- llama-factory llama-factory
Classification
References
-
github.com
/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac
web, patch
-
github.com
/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp
web, exploit, vendor-advisory
-
gist.github.com
/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d
web, exploit
-
nvd.nist.gov
/vuln/detail/CVE-2024-52803
advisory
-
github.com
/hiyouga/LLaMA-Factory
package
-
pypi.org
/project/llamafactory
package
-
github.com
/advisories/GHSA-hj3w-wrh4-44vp
advisory
Sources
- CVE List CVE-2024-52803
- GitHub Advisory GHSA-hj3w-wrh4-44vp
- NVD CVE-2024-52803
- OSV PYSEC-2026-1575
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.