CVE-2024-3098run-llama/llama_index
Critical 9.8 No auth needed
Follow: this CVE · run-llama · run-llama/llama_index We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 1.4% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Apr 10, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- 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 vulnerability was identified in the `exec_utils` class of the `llama_index` package, specifically within the `safe_eval` function, allowing for prompt injection leading to arbitrary code execution. This issue arises due to insufficient validation of input, which can be exploited to bypass method restrictions and execute unauthorized code. The vulnerability is a bypass of the previously addressed CVE-2023-39662, demonstrated through a proof of concept that creates a file on the system by exploiting the flaw.
What to do
- Apply the vendor's security update for run-llama/llama_index.
- 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-wvpx-g427-q9wc, PYSEC-2026-397). Check the version in your lockfile before upgrading.
Affected products
- run-llama · run-llama/llama_index
- run-llama · llama_index
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.