Skip to main content
← All vulnerabilities
CVE-2025-1753GHSA-G99H-56MW-8263PYSEC-2025-246PYSEC-2026-1557

Command Injection in LLama-Index CLI in run-llama/llama_index

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.4.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • run-llama run-llama/llama_index

    fixed in 0.4.1

  • llama-index-cliPyPI

    fixed in 0.4.1

  • llama-indexPyPI

    through 0.12.20

References 2

huntr.com

GitHub · run-llama/llama_index