PT-2025-23074 · Unknown · Llama-Index Cli
Mascia
·
Published
2025-05-28
·
Updated
2025-08-07
·
CVE-2025-1753
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
LLama-Index CLI version v0.12.20
Description
The LLama-Index CLI contains an OS command injection issue due to the improper handling of the
--files argument, which is directly passed into os.system. This allows an attacker who controls the content of this argument to inject and execute arbitrary shell commands. The issue 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, potentially leading to arbitrary code execution on the affected system.Recommendations
For version v0.12.20, consider disabling the
--files argument until a patch is available to prevent the injection of arbitrary shell commands. Restrict access to the LLama-Index CLI to minimize the risk of exploitation, especially in scenarios where user-controlled input may be passed to the CLI.Exploit
Fix
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Llama-Index Cli