CVE-2024-12911: run-llama/llama_index · Improper Neutralization of Special Elements used in an SQL Command
Affects run-llama/llama_indexSource CVE Database V5
Not known to be exploited · CVSS 7.1 High : upgrade to 0.5.1 soon.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.5.1
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Mar 2025
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 2026-10-25.
What to do
Upgrade run-llama/llama_index to 0.5.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| run-llama run-llama/llama_index | Affected
| Fixed in
|
AI-suggested
To mitigate CVE-2024-12911, European organizations should immediately upgrade run-llama/llama_index to version 0.5.1 or later, where the vulnerability has been fixed. Beyond patching, organizations should implement strict input validation and sanitization on all user-supplied data, especially prompts that interact with SQL queries. Employ parameterized queries or prepared statements within the JSONalyzeQueryEngine to prevent injection attacks. Restrict network access to the vulnerable components by using firewalls and network segmentation to limit exposure. Monitor logs for unusual query patterns or errors indicative of injection attempts. Conduct regular security assessments and code reviews focusing on AI-related components that interface with databases. Additionally, implement runtime application self-protection (RASP) or web application firewalls (WAF) capable of detecting and blocking SQL injection attempts. Educate developers and users about the risks of prompt injection in AI systems to reduce inadvertent exposure.
Description
A vulnerability in the `default_jsonalyzer` function of the `JSONalyzeQueryEngine` in the run-llama/llama_index repository allows for SQL injection via prompt injection. This can lead to arbitrary file creation and Denial-of-Service (DoS) attacks. The vulnerability affects the latest version and is fixed in version 0.5.1.