CVE-2024-12909CWE-89

SQL Injection to RCE in run-llama/llama_index

Critical · published March 20, 2025

CVSS v3.0
10.0
EPSS
1%
Percentile
73.0
In the wild
Unconfirmed
What it is

🔥 A sneaky SQL injection vulnerability lurks in the FinanceChatLlamaPack, allowing an attacker to craft arbitrary queries through the `run_sql_query` function! Think of this like a chef in a restaurant who gets a special order slip that doesn’t just list ingredients, but instructs them to change the entire menu! One misstep in the database can lead to an unauthorized banquet of chaos! An attacker could exploit this flaw to inject malicious SQL queries, potentially leading to remote code execution (RCE). This is a full-on takeover of your database, where sensitive data could be accessed, altered, or even wiped clean—absolutely devastating!

Put simply

Think of this like a chef in a restaurant who gets a special order slip that doesn’t just list ingredients, but instructs them to change the entire menu! One misstep in the database can lead to an unauthorized banquet of chaos! The CVE-2024-12909 vulnerability in versions up to v0.12.3 of the FinanceChatLlamaPack allows SQL injection via the `run_sql_query` function, enabling attackers to execute arbitrary SQL commands using PostgreSQL's large object functionality.

What to do

An attacker could exploit this flaw to inject malicious SQL queries, potentially leading to remote code execution (RCE). This is a full-on takeover of your database, where sensitive data could be accessed, altered, or even wiped clean—absolutely devastating! To protect your systems, immediately patch to version v0.3.0 to close this vulnerability. Conduct an audit of your database queries to ensure no other potential SQL injection points exist and consider implementing prepared statements to strengthen your defenses. You've got this! With these steps, you’ll be back on track and your systems will shine with security! 🛡️

The record
Technical detail
CVSS v3.0
10.0 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01444 · 73.0th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2025-03-20T10:09Z
EPSS history
Timeline
  • 20 MAR 10:09Z
    SQL Injection to RCE in run-llama/llama_index
    cvelistv5