{"answers":{"affected":"3 open source packages ship an affected version, including llama-index-packs-finchat. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12909 exists.","fix":"No fix has been published for CVE-2024-12909 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-12909 is a critical SQL injection vulnerability in run-llama/llama_index, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-12909 and fix it if it is affected.\n\nWhat it is: CVE-2024-12909 is a critical SQL injection vulnerability in run-llama/llama_index, published on 20 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12909 exists.\n\nAffected packages and fixed versions:\n- llama-index-packs-finchat (PyPI): affected all versions up to 0.3.0; no fix listed\n- llama-index-packs-finchat (PyPI): affected all versions up to 0.3.0; no fix listed\n- llama-index-packs-finchat (PyPI): affected all versions up to 0.3.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-12909/ (Markdown: https://insights.sbomify.com/CVE-2024-12909/index.md)","id":"CVE-2024-12909","markdown":"https://insights.sbomify.com/CVE-2024-12909/index.md","name":"CVE-2024-12909","record":{"aliases":["GHSA-x48g-hm9c-ww42","PYSEC-2026-398"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python LLM library","requires_auth":"none","summary":"Attackers can exploit SQL injection in the FinanceChatLlamaPack to achieve remote code execution via PostgreSQL large objects.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"llamaindex","vendor":"llamaindex"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"SQL Injection to RCE in run-llama/llama_index","id":"CVE-2024-12909","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"sql_injection","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Denial of Service in run-llama/llama_index","id":"CVE-2024-12910"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.0"],"package":"llama-index-packs-finchat","purl":null,"source":"GHSA-x48g-hm9c-ww42"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.0"],"package":"llama-index-packs-finchat","purl":"pkg:pypi/llama-index-packs-finchat","source":"GHSA-x48g-hm9c-ww42"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.0"],"package":"llama-index-packs-finchat","purl":"pkg:pypi/llama-index-packs-finchat","source":"PYSEC-2026-398"}],"prev":{"headline":"Code injection in Secret Server","id":"CVE-2024-12908"},"products":["run-llama/llama_index"],"published":"2025-03-20","related":[{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1793","kev_date_added":null,"published":"2025-06-05"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2025-1750","kev_date_added":null,"published":"2025-06-02"},{"cvss_score":9.8,"headline":"SQL Injection in run-llama/llama_index","id":"CVE-2024-11958","kev_date_added":null,"published":"2025-03-20"},{"cvss_score":9.8,"headline":"Command Injection in run-llama/llama_index","id":"CVE-2024-3271","kev_date_added":null,"published":"2024-04-16"},{"cvss_score":9.8,"headline":"SQL injection in llama-index","id":"CVE-2024-23751","kev_date_added":null,"published":"2024-01-22"},{"cvss_score":8.8,"headline":"LlamaIndex includes an exec call for `import {cls_name}`","id":"CVE-2024-45201","kev_date_added":null,"published":"2024-08-22"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-03-20","vendors":["run-llama"]},"summary":"Attackers can exploit SQL injection in the FinanceChatLlamaPack to achieve remote code execution via PostgreSQL large objects.","url":"https://insights.sbomify.com/CVE-2024-12909/"}