llama_index vulnerable to SQL Injection
Multiple vector store integrations in llama_index v0.12.21 have SQL injection vulnerabilities. An attacker could read and write data using SQL, potentially accessing other users' data depending on how the library is used in a web application.
run-llama/llama_index
Originally disclosed on huntr
Multiple vector store integrations in run-llama/llama_index version v0.12.21 have SQL injection vulnerabilities. These vulnerabilities allow an attacker to read and write data using SQL, potentially leading to unauthorized access to data of other users depending on the usage of the llama-index library in a web application.
From the GitHub Advisory Database (GHSA-v3c8-3pr6-gr7p, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could read and write data using SQL, potentially leading to unauthorized access to other users' data depending on how the library is used in a web application.
What the attacker needed
Use of affected vector store integrations; attacker can influence SQL query input
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
SQL injection is when an attacker sneaks database commands into input that a program passes to a database without checking it. Here, parts of a library that connect to vector stores (systems that store and search numerical representations of text) build SQL queries unsafely. This could let an attacker read or change data, and in a web app, possibly see other users' data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.