CVE-2024-3271: llama-index-core Command Injection vulnerability
Affects llama-index-coreSource GCVE Database
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
- 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 16 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: 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 15 Nov 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
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
- nvd.nist.gov/vuln/detail/CVE-2024-3271 (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-396.yaml (opens in a new tab)
- github.com/run-llama/llama_index (opens in a new tab)
- huntr.com/bounties/9b32490e-7cf9-470e-8d49-ba083ae7a279 (opens in a new tab)
- pypi.org/project/llama-index-core (opens in a new tab)