Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

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

Critical 10.0

In plain English

A critical-severity SQL injection in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities).

Severity (CVSS 3.0)10.0Critical
Exploit odds (30 days)1.4%top 26.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-index-packs-finchatno fix listedGHSA-x48g-hm9c-ww42
PyPIllama-index-packs-finchatno fix listedPYSEC-2026-398

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before 0.3.0

Weakness: CWE-89 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

References