First published: Thu Mar 20 2025(Updated: )
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.
Credit: security@huntr.dev
Affected Software | Affected Version | How to fix |
---|---|---|
FinanceChatLlamaPack | <v0.12.3 | |
pip/llama-index-packs-finchat | <=0.3.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-12909 is classified as a high severity vulnerability due to its potential for SQL injection exploits.
To fix CVE-2024-12909, upgrade the FinanceChatLlamaPack or llama-index package to version 0.12.4 or later.
CVE-2024-12909 affects versions of the FinanceChatLlamaPack and the llama-index package up to v0.12.3.
The potential impact of CVE-2024-12909 includes unauthorized access to the database through SQL injection.
CVE-2024-12909 is present in the `run_sql_query` function of the `database_agent`.