CVE-2024-12909 — Vulnerability in llama-index-packs-finchat — CVE...
CRITICAL
llama-index-packs-finchat SQL Injection vulnerability
Published March 20, 2025Updated June 29, 2026Source: osv
Summary
A vulnerability in the FinanceChatLlamaPack of the llama-index-packs-finchat package, versions up to v0.3.0, 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 resolved by no longer officially supporting the package and moving it into the `stale_packages` branch on the repo, this removing it from documentation etc.
Advisory Timeline
- First published March 20, 2025 (571 days ago).
- Last revised June 29, 2026 — 466 days after initial publication.
Affected Packages (1)
Affects 1 ecosystem: pypi (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| llama-index-packs-finchat | pypi | 0.1.0, 0.1.1, 0.2.0, 0.3.0 | Range-based data available |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-12909ADVISORY
- https://github.com/run-llama/llama_index/commit/5d03c175476452db9b8abcdb7d5767dd7b310a75WEB
- https://github.com/run-llama/llama_indexPACKAGE
- https://github.com/run-llama/llama_index/tree/stale_packages/llama-index-packs/llama-index-packs-finchatWEB
- https://huntr.com/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3fWEB
Frequently Asked Questions
- What is CVE-2024-12909?
- llama-index-packs-finchat SQL Injection vulnerability This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2024-12909?
- CVE-2024-12909 affects llama-index-packs-finchat. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-12909 and 200,000+ other known vulnerabilities.
Severity & Exploitability
CVSS Score
10.0
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
GHSA-x48g-hm9c-ww42
PYSEC-2026-398
Related CVEs
- CVE-2026-61447CRITICAL
PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets
- CVE-2026-61445CRITICAL
PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies