Live threats

All CVEs / Llamaindex

CVE-2024-3271Llamaindex

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
3.9%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Apr 16, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-77
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Llamaindex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI llama-index-core < 0.10.24 0.10.24 pip install "llama-index-core>=0.10.24"
PyPI llama-index-core < 0.10.24 0.10.24 pip install "llama-index-core>=0.10.24"

Per OSV / GitHub Advisories (GHSA-r6gp-rff2-p3hf, PYSEC-2026-396). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
llamaindexllamaindex≥ 0.10.6 < 0.10.26

Official sources

References

Links published by the sources. Open them with care.