Read the docs
TI-2024-03068 Aliases CVE-2024-3271GHSA-r6gp-rff2-p3hf

Command Injection in run-llama/llama_index

Priority HIGH 82CWE-77Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-77.

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02886 86th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed run-llama/llama_index (run-llama): 10.26llama-index-core (PyPI): 0.10.24

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
run-llamarun-llama/llama_indexbefore 10.2610.26Patch availableCNA
—llama-index-core (PyPI)before 0.10.240.10.24Patch availableGHSA-r6gp-rff2-p3hf
  • run-llama/llama_index Vendorrun-llama Affected before 10.26 Fixed in 10.26 Patch available CNA
  • llama-index-core (PyPI) Vendor— Affected before 0.10.24 Fixed in 0.10.24 Patch available GHSA-r6gp-rff2-p3hf

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*0.10.6 to before 0.10.26Vulnerablerun-llama
  • cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:* Versions 0.10.6 to before 0.10.26 Vulnerable ·run-llama

Remediation

  • Fix · CNA run-llama/llama_index (run-llama) Fixed in 10.26
  • Fix · GHSA-r6gp-rff2-p3hf llama-index-core (PyPI) Fixed in 0.10.24 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-3271
  2. 2026-10-03 Alias added: GHSA-r6gp-rff2-p3hf

References

  • TI-2025-01545 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2025-01507 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2024-11960 SQL Injection to RCE in run-llama/llama_index CVSS 3.1CRITICAL 9.8
  • TI-2024-11094 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2024-15754 LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL… CVSS 3.1CRITICAL 9.8
  • TI-2024-38426 LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion CVSS 4.0HIGH 8.7
See all 23 →

Sources