CVE-2024-58339CWE-770

LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion

High · published January 12, 2026

CVSS v4.0
8.7
EPSS
1%
Percentile
50.5
In the wild
Unconfirmed
What it is

⚡ An uncontrolled resource consumption vulnerability has been discovered in LlamaIndex up to version 0.12.2, turning untrusted prompts into potential chaos! 🔥 Think of it like a restaurant where customers can order an unlimited amount of dishes without any checks—one rogue diner could completely overwhelm the kitchen, leading to a service nightmare! An attacker can exploit this vulnerability to trigger excessive SQL operations, leading to CPU or memory exhaustion and causing a denial-of-service situation. This means your service could slow down or even crash, leaving legitimate users locked out during the busiest times!

Put simply

Think of it like a restaurant where customers can order an unlimited amount of dishes without any checks—one rogue diner could completely overwhelm the kitchen, leading to a service nightmare! The issue arises in the VannaPack VannaQueryEngine's custom_query() logic, which generates and executes SQL statements based on user input without enforcing any execution limits.

What to do

An attacker can exploit this vulnerability to trigger excessive SQL operations, leading to CPU or memory exhaustion and causing a denial-of-service situation. This means your service could slow down or even crash, leaving legitimate users locked out during the busiest times! To secure your systems, upgrade LlamaIndex to version 0.12.3 or later. Additionally, implement strict user input validation to prevent untrusted prompts from being executed. Setting resource limits on SQL operations can also mitigate impact. You've got this! By following these steps, you'll be well on your way to protecting your systems from unnecessary chaos! 🛡️

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00649 · 50.5th percentile
Weakness
CWE-770 · Allocation of Resources Without Limits or Throttling
Published
2026-01-12T23:04Z
EPSS history
Timeline
  • 12 JAN 23:04Z
    LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion
    cvelistv5