Skip to main content
← All vulnerabilities
CVE-2024-3271PYSEC-2026-396GHSA-R6GP-RFF2-P3HF

Command Injection in run-llama/llama_index

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

Summary

A command injection vulnerability exists in the run-llama/llama_index repository, specifically within the safe_eval function. Attackers can bypass the intended security mechanism, which checks for the presence of underscores in code generated by LLM, to execute arbitrary code. This is achieved by crafting input that does not contain an underscore but still results in the execution of OS commands. The vulnerability allows for remote code execution (RCE) on the server hosting the application.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • run-llama run-llama/llama_index

    fixed in 10.26

  • llama-index-corePyPI

    fixed in 0.10.24

References 2

huntr.com

GitHub · run-llama/llama_index