What’s Vulnerable › Vulnerabilities
CVE-2025-1753: Command Injection in LLama-Index CLI in run-llama/llama_index
- Severity: high (CVSS 7.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-05-28 · updated 2026-06-17
- Weakness: CWE-78
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 products
- run-llama/llama_index: 0.12.20
References
- https://github.com/run-llama/llama_index/commit/b57e76738c53ca82d88658b82f2d82d1c7839c7d
- https://huntr.com/bounties/19e1c67e-1d77-451d-b10b-acbe99900b22
Get alerted when CVE-2025-1753 or the next vulnerability affects your stack