CVE-2025-1753CWE-78

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

High · published May 28, 2025

CVSS v3.0
7.8
EPSS
1%
Percentile
64.7
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.0
7.8 · HIGH
Vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01077 · 64.7th percentile
Weakness
CWE-78 · Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Published
2025-05-28T09:34Z
EPSS history
Timeline
  • 28 MAY 09:34Z
    Command Injection in LLama-Index CLI in run-llama/llama_index
    cvelistv5