cve.bz

CVE-2024-3098

9.8 criticalEPSS 1.0%

Critical (9.8). EPSS 1.0% chance of exploitation in the next 30 days. Fixed in llama-index-core 0.10.24.

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.

Severity

CVSS 3.0

9.8 critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.0% chance of exploitation in the next 30 days; higher than 61% of CVEs (scores of 2026-10-31)
CWE
CWE-94
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wvpx-g427-q9wcPyPIllama-index-core<0.10.240.10.24
PYSEC-2026-397PyPIllama-index-core<0.10.240.10.24

References

Check your stackJSON