Command Injection Affecting llamafactory package, versions [,0.9.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMAFACTORY-8400740
  • published22 Nov 2024
  • disclosed21 Nov 2024
  • creditsuperboy-zjc

Introduced: 21 Nov 2024

NewCVE-2024-52803  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade llamafactory to version 0.9.1 or higher.

Overview

llamafactory is an Easy-to-use LLM fine-tuning framework

Affected versions of this package are vulnerable to Command Injection insecure usage of the Popen function with shell=True, coupled with unsanitized user input. An attacker can execute arbitrary commands on the operating system, possibly compromising sensitive data or escalating privileges.

CVSS Scores

version 4.0
version 3.1