AVID-2026-R1560
Description
LLama Factory Remote OS Command Injection Vulnerability (CVE-2024-52803)
Details
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.
Reason for inclusion in AVID: The CVE describes a remote OS command injection vulnerability in LLama Factory (LLaMA-Factory) used to fine-tune LLMs. This is a software vulnerability in AI tooling that could be exploited to execute arbitrary commands on the host, impacting AI model training/serving pipelines. The issue affects software used to build/run AI systems and has a fixed version 0.9.1. It is a software supply-chain-relevant vulnerability in AI tooling.
References
- NVD entry
- https://github.com/hiyouga/LLaMA-Factory/security/advisories/GHSA-hj3w-wrh4-44vp
- https://github.com/hiyouga/LLaMA-Factory/commit/b3aa80d54a67da45e9e237e349486fb9c162b2ac
- https://gist.github.com/superboy-zjc/f2d2b93ae511c445ba97e144b70e534d
Affected or Relevant Artifacts
- Developer: Meta
- Deployer: hiyouga
- Artifact Details:
| Type | Name |
|---|---|
| System | LLaMA-Factory |
Impact
AVID Taxonomy Categorization
- Risk domains: Security
- SEP subcategories: S0100: Software Vulnerability
- Lifecycle stages: L06: Deployment
CVSS
| Version | 3.1 |
| Vector String | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Base Score | 7.5 |
| Base Severity | 🔴 High |
| Attack Vector | NETWORK |
| Attack Complexity | 🟢 Low |
| Privileges Required | NONE |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | 🔴 High |
| Integrity Impact | NONE |
| Availability Impact | NONE |
CWE
| ID | Description |
|---|---|
| CWE-79 | CWE-79: Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’) |
Other information
- Report Type: Advisory
- Credits:
- Date Reported: 2024-11-21
- Version: 0.3.3
- AVID Entry