PYSEC-2026-1557
LLama-Index CLI OS command injection vulnerability
Quick fix
PYSEC-2026-1557 — llama-index-cli: upgrade to the fixed version with the command below.
pip install --upgrade 'llama-index-cli>=0.4.1'Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 0.4.1pip install --upgrade 'llama-index-cli>=0.4.1'References
- https://nvd.nist.gov/vuln/detail/CVE-2025-1753[ADVISORY]
- https://github.com/run-llama/llama_index/commit/b57e76738c53ca82d88658b82f2d82d1c7839c7d[WEB]
- https://github.com/run-llama/llama_index[PACKAGE]
- https://huntr.com/bounties/19e1c67e-1d77-451d-b10b-acbe99900b22[WEB]
- https://pypi.org/project/llama-index-cli[PACKAGE]
- https://github.com/advisories/GHSA-g99h-56mw-8263[ADVISORY]