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

- Severity: Critical 10.0 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.47%, higher than 74% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-20T10:09:20.928Z
- Modified: 2026-11-16T15:30:03.440Z
- Also known as: GHSA-x48g-hm9c-ww42, PYSEC-2026-398
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.3.0
- llama-index-packs-finchat (PyPI): up to 0.3.0
- llamaindex llamaindex: before 0.3.0

## Every score

- @huntr_ai: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 10.0 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3f> (exploit, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/5d03c175476452db9b8abcdb7d5767dd7b310a75> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-12909> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/llama-index-packs-finchat/PYSEC-2026-398.yaml> (web)
- <https://github.com/run-llama/llama_index> (package)
- <https://github.com/run-llama/llama_index/tree/stale_packages/llama-index-packs/llama-index-packs-finchat> (web)
- <https://pypi.org/project/llama-index-packs-finchat> (package, web)
- <https://github.com/advisories/GHSA-x48g-hm9c-ww42> (advisory)

## Sources

- CVE List: [CVE-2024-12909](https://www.cve.org/CVERecord?id=CVE-2024-12909), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-x48g-hm9c-ww42](https://github.com/advisories/GHSA-x48g-hm9c-ww42), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2024-12909](https://nvd.nist.gov/vuln/detail/CVE-2024-12909), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-398](https://osv.dev/vulnerability/PYSEC-2026-398), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-12909 · Whole record: https://cve.day/CVE-2024-12909.json · Rebuilt by cve.day 2026-11-25T22:58:52.366Z
