CVE-2024-52803Hiyouga Llama-factory
Critical 9.8 No auth needed
Follow: this CVE · Hiyouga · Hiyouga Llama-factory We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 3.0% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Nov 21, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Llama-factory.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | llamafactory |
< 0.9.1 |
0.9.1 |
pip install "llamafactory>=0.9.1" |
| PyPI | llamafactory |
< 0.9.1 |
0.9.1 |
pip install "llamafactory>=0.9.1" |
Per OSV / GitHub Advisories (GHSA-hj3w-wrh4-44vp, PYSEC-2026-1575). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hiyouga | llama-factory | < 0.9.1 |
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit
- github.com Patch
- github.com Exploit Vendor Advisory