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

CVE-2025-1753Command Injection in LLama-Index CLI in run-llama/llama_index

High 7.8

In plain English

A high-severity OS command injection in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.8High
Exploit odds (30 days)1.1%top 33.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-indexno fix listedPYSEC-2025-246
PyPIllama-index-cli0.4.1GHSA-g99h-56mw-8263
PyPIllama-index-cli0.4.1PYSEC-2026-1557

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before 0.4.1

Weakness: CWE-78 · Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References