CVE-2024-3098
published critical CVSS 3.0 · 9.8Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| run-llama | run-llama/llama_index | unspecified to < 0.10.24 (affected · custom) | @huntr_ai · cna |
| run-llama | llama_index | 0 to < 0.10.24 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code
References
2Provider assertions
3@huntr_ai · cna
Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 478cdaa2051cf641aa59d2acd591c43b093533d22a392632b1b09afdb4247dae
- Ingested
- 23 Sep 2026, 08:25:33 UTC
- Source record
- Official CVE record