CWE
89
Advisory Published
Advisory Published
Updated

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

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 SoftwareAffected VersionHow to fix
FinanceChatLlamaPack<v0.12.3
pip/llama-index-packs-finchat<=0.3.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-12909?

    CVE-2024-12909 is classified as a high severity vulnerability due to its potential for SQL injection exploits.

  • How do I fix CVE-2024-12909?

    To fix CVE-2024-12909, upgrade the FinanceChatLlamaPack or llama-index package to version 0.12.4 or later.

  • Which software is affected by CVE-2024-12909?

    CVE-2024-12909 affects versions of the FinanceChatLlamaPack and the llama-index package up to v0.12.3.

  • What is the potential impact of CVE-2024-12909?

    The potential impact of CVE-2024-12909 includes unauthorized access to the database through SQL injection.

  • In which function is CVE-2024-12909 present?

    CVE-2024-12909 is present in the `run_sql_query` function of the `database_agent`.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203