{"id":"CVE-2024-3098","published":"2024-04-10T17:07:56Z","modified":"2024-08-01T19:32:42Z","title":"Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00959,"percentile":0.62329,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.com/bounties/1bce0d61-ad03-4b22-bc32-8f99f92974e7","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475","tags":[]}],"priority":{"score":19.3,"factors":[{"name":"EPSS percentile","points":12.47},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.10.24"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-25T19:07:30.673987Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-core","vulnerableRanges":["<0.10.24"],"patched":["0.10.24"],"from":["GHSA-wvpx-g427-q9wc","PYSEC-2026-397"],"provenance":"source"}],"summary":{"text":"The flaw is in the safe_eval function of the exec_utils class in the llama_index package (run-llama/llama_index), where insufficient input validation allows prompt injection to escalate into arbitrary code execution. An attacker can bypass method restrictions by crafting input that gets executed as code, and the attack vector indicates it is reachable over the network with low complexity, requiring no privileges and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:44Z"},"euvd":{"id":"EUVD-2024-1326","exploited":false,"provenance":"source"}}