CVE-2024-3271Llamaindex
Critical 9.8 No auth needed
Follow: this CVE · Llamaindex · Llamaindex We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Llamaindex.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| llamaindex | llamaindex | ≥ 0.10.6 < 0.10.26 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- huntr.com Exploit Third Party Advisory