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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-12909— SQL Injection to RCE in run-llama/llama_index

Quick assessment

Affected
run-llama 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 v0.12.3及之前版本存在SQL注入漏洞,该漏洞源于未验证SQL查询,可能导致SQL注入攻击。

AI Predicted 9.8 Difficulty: Easy EPSS 1.44% · P72

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-12909

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
SQL Injection to RCE in run-llama/llama_index
Source: CVE Program / CVE List V5
Vulnerability Description
A vulnerability in the FinanceChatLlamaPack of the run-llama/llama_index repository, versions up to v0.12.3, allows for SQL injection in the `run_sql_query` function of the `database_agent`. This vulnerability can be exploited by an attacker to inject arbitrary SQL queries, leading to remote code execution (RCE) through the use of PostgreSQL's large object functionality. The issue is fixed in version 0.3.0.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
LlamaIndex SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LlamaIndex是LlamaIndex开源的一个 LLM 应用程序的数据框架。 LlamaIndex v0.12.3及之前版本存在SQL注入漏洞,该漏洞源于未验证SQL查询,可能导致SQL注入攻击。
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 run-llama/llama_index unspecified ~ 0.3.0 -

II. Public POCs for CVE-2024-12909

# 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-12909

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

Patches & Fixes for CVE-2024-12909 (1)

Vendor Advisories for CVE-2024-12909 (1)

Same Patch Batch · run-llama · 2025-03-20 · 5 CVEs total

CVE-2024-12910 Denial of Service in run-llama/llama_index
CVE-2024-12911 SQL Injection in run-llama/llama_index
CVE-2024-12704 Denial of Service (DoS) in run-llama/llama_index
CVE-2024-11958 SQL Injection in run-llama/llama_index

IV. Related Vulnerabilities

V. Comments for CVE-2024-12909

No comments yet


Leave a comment