CVE-2024-52803
CVE-2024-52803 is a high-severity vulnerability in Hiyouga Llama-factory with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-78.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 2% (81st percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-3357
- Weakness: CWE-78
- Affected product: Hiyouga Llama-factory
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-52803?
- 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.
- How severe is CVE-2024-52803?
- CVE-2024-52803 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2024-52803 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (81st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-52803?
- CVE-2024-52803 affects Hiyouga Llama-factory. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-52803?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-52803 have an EU (EUVD) identifier?
- Yes. CVE-2024-52803 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-3357.
- When was CVE-2024-52803 published?
- CVE-2024-52803 was published on 2024-11-21 and last updated on 2026-06-17.
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
Affected products (1)
- cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*
More vulnerabilities in Hiyouga Llama-factory
- CVE-2026-58116 — Critical (CVSS 9.8): LLaMA-Factory through 0.9.5 contains a remote code execution vulnerability that allows attackers with WebUI access to…
- CVE-2025-53002 — High (CVSS 8.3): LLaMA-Factory is a tuning library for large language models. A remote code execution vulnerability was discovered in…
- CVE-2025-61784 — High (CVSS 7.6): LLaMA-Factory is a tuning library for large language models. Prior to version 0.9.4, a Server-Side Request Forgery…
- CVE-2025-46567 — Medium (CVSS 6.1): LLama Factory enables fine-tuning of large language models. Prior to version 1.0.0, a critical vulnerability exists in…
All CVEs affecting Hiyouga Llama-factory →
Other CWE-78 (OS Command Injection) vulnerabilities
- CVE-2026-56004 — Critical (CVSS 10.0): A shellcode injection in the mercurial handler of the obs tar_scm source service before version 0.12.4 could be used by…
- CVE-2026-56415 — Critical (CVSS 10.0): Storage Concentrator (SC & SCVM) contains a command injection vulnerability within the debug.pl script that is…
- CVE-2026-56413 — Critical (CVSS 10.0): Storage Concentrator (SC & SCVM) contains a command injection vulnerability in the ms_service.pl service, which listens…
- CVE-2026-49869 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, AuthenticationFilter in…
- CVE-2026-49261 — Critical (CVSS 10.0): MariaDB server is a community developed fork of MySQL server. Versions 10.6.1 through 10.6.26, 10.11.1 through…
- CVE-2026-10520 — Critical (CVSS 10.0): An OS Command Injection vulnerability in Ivanti Sentry before the R10.5.2, R10.6.2 and R10.7.1 versions allows a…