CVE-2025-1753: run-llama/llama_index · Improper Neutralization of Special Elements used in an OS Command
Affects run-llama/llama_indexSource CVE Database V5
Not known to be exploited · CVSS 7.8 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 1.1% chance of exploitation in 30 days – higher than 66% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 28 May 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPIllama-indexpkg:pypi/llama-indexOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Immediate mitigation steps include: 1) Avoid passing user-controlled input directly to the '--files' argument in the LLama-Index CLI. Implement strict input validation and sanitization to ensure only safe filenames are accepted, disallowing shell metacharacters or command separators. 2) Where possible, replace usage of os.system with safer alternatives such as subprocess.run with argument lists to avoid shell interpretation. 3) Restrict access to the CLI tool to trusted users and environments, minimizing exposure to untrusted inputs. 4) For web applications invoking LLama-Index CLI, implement strong input validation, sandboxing, and privilege separation to limit the impact of potential exploitation. 5) Monitor systems for unusual command executions or process invocations related to LLama-Index. 6) Stay alert for official patches or updates from the vendor and apply them promptly once available. 7) Consider employing application whitelisting and endpoint detection and response (EDR) solutions to detect and block suspicious command injection attempts. 8) Conduct security reviews of automation scripts and CI/CD pipelines that use LLama-Index CLI to ensure no injection vectors exist.
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.