CVE-2024-52803

LLama Factory Remote OS Command Injection Vulnerability

Published Nov 21, 2024 CVSS 3.1 · 7.5 High EPSS 2.3% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-3357 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.
Github GHSA Github GHSA GHSA-hj3w-wrh4-44vp LLama Factory Remote OS Command Injection Vulnerability
History
Type Values Removed Values Added
First Time appeared Hiyouga
Hiyouga llama-factory
Weaknesses CWE-78
CPEs cpe:2.3:a:hiyouga:llama-factory:*:*:*:*:*:*:*:*
Vendors & Products Hiyouga
Hiyouga llama-factory
Type Values Removed Values Added
First Time appeared Llama-factory
Llama-factory llama-factory
CPEs cpe:2.3:a:llama-factory:llama-factory:*:*:*:*:*:*:*:*
Vendors & Products Llama-factory
Llama-factory llama-factory
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title LLama Factory Remote OS Command Injection Vulnerability
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 21, 2024, 9:12 PM
Reserved
Nov 15, 2024, 5:11 PM
Status
Analyzed
Published
Nov 21, 2024, 5:15 PM
Modified
Jun 17, 2026, 8:07 AM