CVE-2024-3098: llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution
Affects llama-index-coreSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 9.8 Critical : upgrade to 0.10.24 as a priority.
Data as of 27 Oct 2026, 18:28 UTC
- Patch
- Available – fixed in 0.10.24
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 10 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade llama-index-core to 0.10.24.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIllama-index-core | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in llama-index-core version 0.10.24 that fixes this vulnerability. Users should upgrade to version 0.10.24 or later to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Description
A critical vulnerability (CVE-2024-3098) exists in the llama-index-core package versions prior to 0.10.24. It involves a prompt injection flaw in the safe_eval function of the exec_utils class, allowing attackers to bypass input validation and execute arbitrary code. This vulnerability is a bypass of a previously fixed issue (CVE-2023-39662) and has been demonstrated with a proof of concept that can create files on the affected system.
References
- nvd.nist.gov/vuln/detail/CVE-2024-3098 (opens in a new tab)
- github.com/run-llama/llama_index/commit/2c92e88838a5f481d50840240b1dd3180066c6f5 (opens in a new tab)
- github.com/run-llama/llama_index/commit/5fbcb5a8b9f20f81b791c7fc8849e352613ab475 (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/llama-index-core/PYSEC-2026-397.yaml (opens in a new tab)
- github.com/run-llama/llama_index (opens in a new tab)
- huntr.com/bounties/1bce0d61-ad03-4b22-bc32-8f99f92974e7 (opens in a new tab)
- pypi.org/project/llama-index-core (opens in a new tab)