LLama Factory Remote OS Command Injection Vulnerability
CVE-2024-52803 · GHSA-hj3w-wrh4-44vp · published 2024-11-21 · updated 2025-08-27
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 2.3%
- Fixed in
- 0.9.1
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
Exploitation of this vulnerability allows attackers to: 1. Execute arbitrary OS commands on the server. 2. Potentially compromise sensitive data or escalate privileges. 3. Deploy malware or create persistent backdoors in the system. This significantly increases the risk of data breaches and operational disruption.
Upgrade llamafactory to 0.9.1 or later.
Avoid using shell=True in Popen. Instead, pass the command and its arguments as a list. This prevents user inputs from being executed as part of a shell command.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| llamafactory | PyPI | <= 0.9.0 | 0.9.1 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- Criticalmcp-server-git runs a repo's gpg.program via git_merge and git_branchmcp-server-git
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.