SecurityContext

CVE-2024-12909: run-llama llama_index - SQL Injection

  • Cve: CVE-2024-12909
  • Name: run-llama llama_index - SQL Injection
  • 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.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to remote code execution via PostgreSQL large object functionality.
  • Remediation: Update to version 0.3.0 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01444
  • Epss percentile: 0.73937
  • Assignee: [email protected]
  • Published at: 2025-03-20T10:15:31Z
  • Age in days: 614
  • Modified at: 2026-06-17T07:00:44Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-12909
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://huntr.com/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3fnvd2025-03-20

References

UrlSourceTags
https://github.com/run-llama/llama_index/commit/5d03c175476452db9b8abcdb7d5767dd7b310a75nvdPatch
https://huntr.com/bounties/44e8177f-200a-4ba3-a12c-8bc21e313a3fnvdExploit, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
llamaindex:llamaindex< 0.3.0nonvd/v1/products/llamaindex/llamaindex

Projects

RepositoryLink kindsIndexedUrl
run-llama/llama_indexcommit, packageyes/v1/repositories/run-llama/llama_index

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-03-20
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts