Skip to main content
VulnerabilityPublished Updated

CVE-2024-3271: llama-index-core Command Injection vulnerability

Affects llama-index-coreSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical : upgrade to 0.10.24 as a priority.

Data as of 16 Nov 2026, 17:33 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 16 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: 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 15 Nov 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

Upgrade to llama-index-core version 0.10.24 or later, where this command injection vulnerability is fixed. No other mitigations are indicated by the vendor advisory. Applying the official patch fully addresses the issue.

Description

A critical command injection vulnerability (CVE-2024-3271) exists in the llama-index-core project prior to version 0.10.24. The flaw is in the safe_eval function, which attempts to prevent unsafe code execution by checking for underscores in generated code. Attackers can bypass this check and execute arbitrary operating system commands remotely. This vulnerability allows unauthenticated remote code execution on the server hosting the vulnerable application. A fix is available in version 0.10.24.

References

Community reviews

Loading reviews…