CVE-2024-3098

Prompt Injection leading to Arbitrary Code Execution in run-llama/llama_index

Published Apr 10, 2024 CVSS 3.0 · 9.8 Critical EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-1326 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.
Github GHSA Github GHSA GHSA-wvpx-g427-q9wc llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution
History

No history.

Subscriptions

No data.

Weaknesses

Sources

Status
PUBLISHED
Assigner
@huntr_ai
Published
Updated
Aug 1, 2024, 7:32 PM
Reserved
Mar 29, 2024, 5:32 PM
Status
Deferred
Published
Apr 10, 2024, 5:15 PM
Modified
Jun 17, 2026, 7:43 AM