Skip to content
OpenAdvisories
High · 7.8 CVE-2025-1753 EUVD-2025-16322GHSA-g99h-56mw-8263PYSEC-2025-246PYSEC-2026-1557

Command Injection in LLama-Index CLI in run-llama/llama_index

Published May 28, 2025 · Updated May 28, 2025 · Assigned by @huntr_ai

Description

LLama-Index CLI version v0.12.20 contains an OS command injection vulnerability. The vulnerability arises from the improper handling of the `--files` argument, which is directly passed into `os.system`. An attacker who controls the content of this argument can inject and execute arbitrary shell commands. This vulnerability can be exploited locally if the attacker has control over the CLI arguments, and remotely if a web application calls the LLama-Index CLI with a user-controlled filename. This issue can lead to arbitrary code execution on the affected system.

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < 0.4.1 0.4.1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index <= 0.12.20 — PYSEC-2025-246
PyPI llama-index-cli < 0.4.1 0.4.1 GHSA-g99h-56mw-8263

References