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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | llama-index | no fix listed | PYSEC-2025-246 |
| PyPI | llama-index-cli | 0.4.1 | GHSA-g99h-56mw-8263 |
| PyPI | llama-index-cli | 0.4.1 | PYSEC-2026-1557 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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