CVE-2024-12909 json
SQL Injection to RCE in run-llama/llama_index
published 2025-03-20 19 mo ago modified 2026-07-01 4 mo ago also GHSA-x48g-hm9c-ww42 , PYSEC-2026-398 , EUVD-2025-6982
- cvss
- 10.0
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-12909 updated cvss 10.0
llama-index: SQL Injection to RCE in run-llama/llama_index
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3f referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 3.0 | 10.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index-packs-finchat | <=0.3.0 |
no fix listed |
Affected products
- run-llama run-llama/llama_index
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/run-llama/llama_index/commit/5d03c175476452db9b8abcdb7d5767dd7b310a75
web, patch
-
huntr.com
/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3f
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-12909
advisory
-
github.com
/run-llama/llama_index
package
-
github.com
/run-llama/llama_index/tree/stale_packages/llama-index-packs/llama-index-packs-finchat
web
-
pypi.org
/project/llama-index-packs-finchat
package
-
github.com
/advisories/GHSA-x48g-hm9c-ww42
advisory
Sources
- CVE List CVE-2024-12909
- GitHub Advisory GHSA-x48g-hm9c-ww42
- NVD CVE-2024-12909
- OSV PYSEC-2026-398
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.