CVE-2025-1753
Command Injection in LLama-Index CLI in run-llama/llama_index
- State
- Published
- Severity
- 7.8 High
- Published
- May 28, 2025
- Updated
- May 28, 2025
- Reserved
- Feb 27, 2025
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 3.0 | 7.8 High | CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | @huntr_ai |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected Products
| Product | Versions |
|---|---|
run-llama/llama_indexrun-llama |
|
References
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.