CVE-2024-11958CWE-89

SQL Injection in run-llama/llama_index

Critical · published March 20, 2025

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

🔥 A sneaky SQL injection vulnerability lurks in the `duckdb_retriever` of the run-llama/llama_index repository — and it's an open invitation for remote code execution! Think of it like a restaurant where the chef blindly follows any recipe handed to them. If a rogue customer slips in a recipe that includes dangerous ingredients, the whole kitchen could be compromised, serving up chaos instead of compliance! An attacker can exploit this vulnerability to execute arbitrary SQL commands, potentially installing the shellfs extension and running malicious commands on the server. This could lead to complete control over databases and sensitive data exposure — yikes!

Put simply

Think of it like a restaurant where the chef blindly follows any recipe handed to them. If a rogue customer slips in a recipe that includes dangerous ingredients, the whole kitchen could be compromised, serving up chaos instead of compliance! This SQL injection vulnerability arises from constructing SQL queries without prepared statements, allowing attackers to inject malicious SQL code freely into the database commands.

What to do

An attacker can exploit this vulnerability to execute arbitrary SQL commands, potentially installing the shellfs extension and running malicious commands on the server. This could lead to complete control over databases and sensitive data exposure — yikes! Immediate action is crucial: patch to the latest version that addresses this vulnerability, use prepared statements in all SQL queries, and audit your code for any other unprotected SQL execution paths. Don’t wait too long — the risks are too high! You can tackle this! Follow these steps to secure your system and regain peace of mind. 🛡️

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/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:10Z
EPSS history
Timeline
  • 20 MAR 10:10Z
    SQL Injection in run-llama/llama_index
    cvelistv5