AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

LlamaIndexGHSA-r6gp-rff2-p3hf

llama-index-core Command Injection vulnerability

LlamaIndex

CVE-2024-3271 · Published Apr 16, 2024 · updated Jun 29, 2026

Critical9.8
Fix: upgrade to 0.10.24 or later
GitHub advisory

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.

Affected versions

PackageAffectedFixed in
llama-index-core
PyPI
< 0.10.240.10.24
Details and references

More LlamaIndex advisories

All LlamaIndex