Command Injection Affecting llama-index-cli package, versions [,0.4.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.08% (24th 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-LLAMAINDEXCLI-10265935
  • published30 May 2025
  • disclosed28 May 2025
  • creditElias Hohl

Introduced: 28 May 2025

NewCVE-2025-1753  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade llama-index-cli to version 0.4.1 or higher.

Overview

llama-index-cli is a llama-index cli

Affected versions of this package are vulnerable to Command Injection through the CLI interface due to pasting the --files argument directly into os.system. An attacker who controls the content of this argument can execute arbitrary commands on the system by injecting malicious input into the argument.

PoC

llamaindex-cli rag --create-llama --files \$\(echo\ hello\ \>\ teeest.txt\)

CVSS Base Scores

version 4.0
version 3.1