CVE-2024-3271

GHSA-r6gp-rff2-p3hf · published 16 Apr 2024 · updated 16 Nov 2026

Command Injection in run-llama/llama_index

9.8CriticalCVSS 9.8EPSS 3%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 3%. Fixed in 10.26 and llama-index-core 0.10.24.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
run-llama<10.2610.26
pypi: llama-index-core<0.10.240.10.24

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in llama-index-core (PyPI), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-3271 severity on Zeptric[![CVE-2024-3271](https://zeptric.io/badge/cve/CVE-2024-3271.svg)](https://zeptric.io/cve/CVE-2024-3271)