LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id
An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).
- Products
- llama-index-vector-stores-duckdb
- Affected versions
- Not specified
- Fixed versions
- 0.12.21
- CVEs
- CVE-2025-1750
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 18:15 UTC · Revision 2
Source evidence
LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id
core-osv · Original sourcePublished 2 Jun 2025, 12:30 UTC
An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).
osv:GHSA-6mcc-q3mg-3qg6
llama-index-vector-stores-duckdb
Fixed versions: 0.12.21
Complete source record
{
"id": "061c84c386acf8e10ec399ca614c5276a66d7d6c40b3ad07275810f67792d1db",
"url": "https://osv.dev/vulnerability/GHSA-6mcc-q3mg-3qg6",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id",
"summary": "An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).",
"evidence": "osv:GHSA-6mcc-q3mg-3qg6",
"products": [
{
"name": {
"value": "llama-index-vector-stores-duckdb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.12.21",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "GHSA-6mcc-q3mg-3qg6",
"aliases": [
"CVE-2025-1750",
"GHSA-6mcc-q3mg-3qg6",
"PYSEC-2025-245",
"PYSEC-2026-4242"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.12.19"
},
{
"fixed": "0.12.21"
}
]
}
],
"package": {
"name": "llama-index-vector-stores-duckdb",
"purl": "pkg:pypi/llama-index-vector-stores-duckdb",
"ecosystem": "PyPI"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-6mcc-q3mg-3qg6/GHSA-6mcc-q3mg-3qg6.json"
}
}
],
"modified": "2026-10-15T14:56:11.668398293Z",
"provider": "osv",
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2025-1750",
"https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2",
"https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml",
"https://github.com/run-llama/llama_index",
"https://github.com/run-llama/llama_index/releases/tag/v0.12.21",
"https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8"
],
"provider_metadata": {
"cwe_ids": [
"CWE-89"
],
"severity": "CRITICAL",
"github_reviewed": true,
"nvd_published_at": "2025-06-02T10:15:20Z",
"github_reviewed_at": "2026-10-02T22:38:36Z"
}
},
"related_cves": [
{
"value": "CVE-2025-1750",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 332689,
"published_at": "2025-06-02T12:30:33+00:00"
}LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id
core-osv · Original sourcePublished 15 Oct 2026, 10:22 UTC
An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).
osv:PYSEC-2026-4242
llama-index-vector-stores-duckdb
Fixed versions: 0.12.21
Complete source record
{
"id": "0fd60d3d96278dbc25b119af67fd9d90a6fbb78c90de43e07ad13efde526a49d",
"url": "https://osv.dev/vulnerability/PYSEC-2026-4242",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id",
"summary": "An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).",
"evidence": "osv:PYSEC-2026-4242",
"products": [
{
"name": {
"value": "llama-index-vector-stores-duckdb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "0.12.21",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "PYSEC-2026-4242",
"aliases": [
"CVE-2025-1750",
"GHSA-6mcc-q3mg-3qg6",
"PYSEC-2025-245",
"PYSEC-2026-4242"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0.12.19"
},
{
"fixed": "0.12.21"
}
]
}
],
"package": {
"name": "llama-index-vector-stores-duckdb",
"purl": "pkg:pypi/llama-index-vector-stores-duckdb",
"ecosystem": "PyPI"
},
"database_specific": {
"source": "https://github.com/pypa/advisory-database/blob/main/vulns/llama-index-vector-stores-duckdb/PYSEC-2026-4242.yaml"
}
}
],
"modified": "2026-10-15T14:56:11.668398293Z",
"provider": "osv",
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2025-1750",
"https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2",
"https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml",
"https://github.com/run-llama/llama_index",
"https://github.com/run-llama/llama_index/releases/tag/v0.12.21",
"https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8",
"https://pypi.org/project/llama-index-vector-stores-duckdb",
"https://github.com/advisories/GHSA-6mcc-q3mg-3qg6"
]
},
"related_cves": [
{
"value": "CVE-2025-1750",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 332691,
"published_at": "2026-10-15T10:22:42.591402+00:00"
}