Skip to content
Threat Brief

← All advisories

CVE-2024-12909

Critical 10.0No known exploitationFix available

SQL Injection to RCE in run-llama/llama_index

Vendor advisory: GHSA-x48g-hm9c-ww42

Record last updated

CVSS score

10.0

Critical on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

None

No EPSS score available

CISA remediation deadline

None

Not in the KEV catalog

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.

Weakness: CWE-89

Patching and mitigation

Patch status
Fix available (source: CVE record (@huntr_ai))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
github.com (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
pipllama-index-packs-finchatall versions up to and including 0.3.0Not documentedGitHub Advisory Database
run-llamarun-llama/llama_indexall versions before 0.3.00.3.0CVE Program

Timeline

  1. Disclosure

    CVE record published by @huntr_ai

    Source: CVE Program (opens in a new tab)

  2. Patch

    Fix documented by CVE record (@huntr_ai)

    Source: CVE record (@huntr_ai) (opens in a new tab)

Vendor guidance and references