logo

CVE-2025-1753 llama-index-cli

Package

Manager: pip
Name: llama-index-cli
Vulnerable Version: >=0 <0.4.1

Severity

Level: High

CVSS v3.1: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.00066 pctl0.20719

Details

LLama-Index CLI OS command injection vulnerability LLama-Index CLI prior to v0.4.1, corresponding to LLama-Index prior to v0.12.21, 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.

Metadata

Created: 2025-05-28T12:30:33Z
Modified: 2025-05-28T16:07:48Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/05/GHSA-g99h-56mw-8263/GHSA-g99h-56mw-8263.json
CWE IDs: ["CWE-78"]
Alternative ID: GHSA-g99h-56mw-8263
Finding: F404
Auto approve: 1