Loading...
Skip to main content

CVE-2024-11958 — Vulnerability in...

CRITICAL

LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection

Published March 20, 2025Updated July 21, 2026Source: osv

Summary

A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in llama-index-retrievers-duckdb-retriever prior to v0.4.0. The vulnerability arises from the construction of SQL queries without using prepared statements, allowing an attacker to inject arbitrary SQL code. This can lead to remote code execution (RCE) by installing the shellfs extension and executing malicious commands.

Advisory Timeline

  • First published March 20, 2025 (571 days ago).
  • Last revised July 21, 2026 — 488 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update llama-index-retrievers-duckdb-retriever to 0.4.0 or later
pip install "llama-index-retrievers-duckdb-retriever>=0.4.0"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
llama-index-retrievers-duckdb-retriever
pypi
0.1.4, 0.2.0, 0.3.00.4.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2024-11958?
LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2024-11958?
CVE-2024-11958 affects llama-index-retrievers-duckdb-retriever. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-11958 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-339r-cjv9-x78g
PYSEC-2026-399

Related CVEs

  • CVE-2026-61447
    CRITICAL

    PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets

  • CVE-2026-61445
    CRITICAL

    PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies