CVE-2024-12909
Critical 10.0No known exploitationFix availableSQL Injection to RCE in run-llama/llama_index
Vendor advisory: GHSA-x48g-hm9c-ww42
Record last updated
CVSS score
Critical on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
No EPSS score available
CISA remediation deadline
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
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| pip | llama-index-packs-finchat | all versions up to and including 0.3.0 | Not documented | GitHub Advisory Database |
| run-llama | run-llama/llama_index | all versions before 0.3.0 | 0.3.0 | CVE Program |
Timeline
Disclosure
CVE record published by @huntr_ai
Source: CVE Program (opens in a new tab)
Patch
Fix documented by CVE record (@huntr_ai)