llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution
CVE-2024-3098 · GHSA-wvpx-g427-q9wc · published 2024-04-10 · updated 2026-10-27
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 0.96%
- Fixed in
- 0.10.24
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
A vulnerability was identified in the executils class of the llamaindex 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.
Upgrade llama-index-core to 0.10.24 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| llama-index-core | PyPI | < 0.10.24 | 0.10.24 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalLlamaIndex includes an exec call for `import {cls_name}`llama-index-core
- Criticalllama-index-core Command Injection vulnerabilityllama-index-core
- Highllama-index-core insecurely handles temporary filesllama-index-core
- HighLlamaIndex affected by a Denial of Service (DOS) in JSONReaderllama-index-core
- HighLlamaIndex vulnerable to Path Traversal attack through its encode_image functionllama-index-core
- HighLlamaIndex Improper Handling of Exceptional Conditions vulnerabilityllama-index-core
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.