Skip to main content
VulnerabilityPublished Updated

CVE-2024-3098: llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution

Affects llama-index-coreSource GCVE Database

0

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

CVSS 3.0 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
PyPIllama-index-coreAffected
  • <0.10.24
Fixed in
  • 0.10.24

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

Community reviews

Loading reviews…