Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-58339— LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion

Quick assessment

Affected
run-llama llama_index
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LlamaIndex是LlamaIndex开源的一个 LLM 应用程序的数据框架。 LlamaIndex 0.12.2及之前版本存在安全漏洞,该漏洞源于VannaPack VannaQueryEngine实现中未强制执行查询执行限制,可能导致资源消耗型拒绝服务攻击。

CVSS 8.7 · High EPSS 0.63% · P49

Affected Version Matrix 1

VendorProduct Version RangeStatus
run-llama llama_index ≤ 0.12.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-58339

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion
Source: CVE Program / CVE List V5
Vulnerability Description
LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation. The custom_query() logic generates SQL statements from a user-supplied prompt and executes them via vn.run_sql() without enforcing query execution limits In downstream deployments where untrusted users can supply prompts, an attacker can trigger expensive or unbounded SQL operations that exhaust CPU or memory resources, resulting in a denial-of-service condition. The vulnerable execution path occurs in llama_index/packs/vanna/base.py within custom_query().
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
不加限制或调节的资源分配
Source: CVE Program / CVE List V5
Vulnerability Title
LlamaIndex 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LlamaIndex是LlamaIndex开源的一个 LLM 应用程序的数据框架。 LlamaIndex 0.12.2及之前版本存在安全漏洞,该漏洞源于VannaPack VannaQueryEngine实现中未强制执行查询执行限制,可能导致资源消耗型拒绝服务攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
run-llama llama_index 0 ~ 0.12.2 -

II. Public POCs for CVE-2024-58339

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-58339

请登录查看更多情报信息。

IV. Related Vulnerabilities

V. Comments for CVE-2024-58339

No comments yet


Leave a comment