llama-index-core
Affected
- introduced
0, fixed0.10.24(ecosystem)
Fixed versions
0.10.24
Fix
- Fixed version
0.10.24pip install --upgrade llama-index-core==0.10.24
Advisory
Also known as: CVE-2024-3271, PYSEC-2026-396
llama-index-core Command Injection vulnerability
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.
Critical Basis: The source's own band: CRITICAL
0, fixed 0.10.24 (ecosystem)0.10.24
0.10.24pip install --upgrade llama-index-core==0.10.24Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0