Skip to content

← Public intelligence

PyPI package

llama-index

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

19 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5PyPIPublished

    PYSEC-2026-86

    CVE-2024-58339

    Affected
    • PyPI llama-index < 0.12.3
    Fixed in
    0.12.3· Vendor fix available
    Issue
    LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation. The custom_query() logic generates SQL statements from a user-supplied prompt and executes them via vn.run_sql() without enforcing query execution limits In downstream deployments where untrusted users can supply prompts, an attacker can trigger expensive or unbounded SQL operations that exhaust CPU or memory resources, resulting in a denial-of-service condition. The vulnerable execution path occurs in llama_index/packs/vanna/base.py within custom_query().

    Recommended action: Upgrade to 0.12.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  2. High, CVSS 7.8PyPIPublished

    PYSEC-2026-85

    CVE-2024-14021

    Affected
    • PyPI llama-index < 0.11.7
    Fixed in
    0.11.7· Vendor fix available
    Issue
    LlamaIndex (run-llama/llama_index) versions up to and including 0.11.6 contain an unsafe deserialization vulnerability in BGEM3Index.load_from_disk() in llama_index/indices/managed/bge_m3/base.py. The function uses pickle.load() to deserialize multi_embed_store.pkl from a user-supplied persist_dir without validation. An attacker who can provide a crafted persist directory containing a malicious pickle file can trigger arbitrary code execution when the victim loads the index from disk.

    Recommended action: Upgrade to 0.11.7 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.devSource checked Evidence →
  3. High, CVSS 7.1PyPIAmendedPublished

    llama-index has Insecure Temporary File

    CVE-2025-7707 · GHSA-rg9h-vx28-xxp5

    Affected
    • PyPI llama-index < 0.13.0
    Fixed in
    0.13.0· Vendor fix available
    Issue
    The llamaindex library version 0.12.33 sets the NLTK data directory to a subdirectory of the codebase by default, which is world-writable in multi-user environments. This configuration allows local users to overwrite, delete, or corrupt NLTK data files, leading to potential denial of service, data tampering, or privilege escalation. The vulnerability arises from the use of a shared cache directory instead of a user-specific one, making it susceptible to local data tampering and denial of service.

    Recommended action: Upgrade to 0.13.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 6.5PyPIAmendedPublished

    LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class

    CVE-2025-6211 · GHSA-5hq9-5r78-2gjh

    Affected
    • PyPI llama-index < 0.12.41
    Fixed in
    0.12.41· Vendor fix available
    Issue
    A vulnerability in the DocugamiReader class of the run-llama/llamaindex repository, up to but excluding version 0.12.41, involves the use of MD5 hashing to generate IDs for document chunks. This approach leads to hash collisions when structurally distinct chunks contain identical text, resulting in one chunk overwriting another. This can cause loss of semantically or legally important document content, breakage of parent-child chunk hierarchies, and inaccurate or hallucinated responses in AI outputs. The issue is resolved in version 0.3.1.

    Recommended action: Upgrade to 0.12.41 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. High, CVSS 7.5PyPIAmendedPublished

    LlamaIndex vulnerable to Path Traversal attack through its encode_image function

    CVE-2025-6209 · GHSA-2rhq-96q8-4vjq

    Affected
    • PyPI llama-index >= 0.12.27, < 0.12.41
    Fixed in
    0.12.41· Vendor fix available
    Issue
    A path traversal vulnerability exists in run-llama/llamaindex versions 0.11.23 through 0.12.40, specifically within the encodeimage function in genericutils.py. This vulnerability allows an attacker to manipulate the imagepath input to read arbitrary files on the server, including sensitive system files. The issue arises due to improper validation or sanitization of the file path, enabling path traversal sequences to access files outside the intended directory. The vulnerability is fixed in version 0.12.41.

    Recommended action: Upgrade to 0.12.41 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  6. Medium, CVSS 6.2PyPIAmendedPublished

    LlamaIndex vulnerability in its ObsidianReader class can lead to Path Traversal exploit

    CVE-2025-6210 · GHSA-3j8r-jf9w-5cmh

    Affected
    • PyPI llama-index < 0.5.2
    Fixed in
    0.5.2· Vendor fix available
    Issue
    A vulnerability in the ObsidianReader class of the run-llama/llamaindex repository, before version 0.5.2 (specifically in version 0.12.27 of llama-index), allows for hardlink-based path traversal. This flaw permits attackers to bypass path restrictions and access sensitive system files, such as /etc/passwd, by exploiting hardlinks. The vulnerability arises from inadequate handling of hardlinks in the loaddata() method, where the security checks fail to differentiate between real files and hardlinks. This issue is resolved in llama-index-readers-obsidian version 0.5.2.

    Recommended action: Upgrade to 0.5.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  7. Medium, CVSS 6.5PyPIAmendedPublished

    LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing

    CVE-2025-5472 · GHSA-3wxx-q3gv-pvvv

    Affected
    • PyPI llama-index >= 0.12.28, < 0.12.38
    Fixed in
    0.12.38· Vendor fix available
    Issue
    The JSONReader in run-llama/llamaindex versions 0.12.28 is vulnerable to a stack overflow due to uncontrolled recursive JSON parsing. This vulnerability allows attackers to trigger a Denial of Service (DoS) by submitting deeply nested JSON structures, leading to a RecursionError and crashing applications. The root cause is the unsafe recursive traversal design and lack of depth validation, which makes the JSONReader susceptible to stack overflow when processing deeply nested JSON. This impacts the availability of services, making them unreliable and disrupting workflows. The issue is resolved in version 0.12.38.

    Recommended action: Upgrade to 0.12.38 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  8. High, CVSS 7.5PyPIAmendedPublished

    LlamaIndex is vulnerable to Path Traversal attack through its ObsidianReader class

    CVE-2025-3046 · GHSA-fmrf-6jv9-qjc7

    Affected
    • PyPI llama-index >= 0.12.23, < 0.12.28
    Fixed in
    0.12.28· Vendor fix available
    Issue
    A vulnerability in the ObsidianReader class in LlamaIndex Readers Integration: Obsidian before version 0.5.1 from the run-llama/llamaindex repository (versions 0.12.23 to 0.12.28) allows for arbitrary file read through symbolic links. The ObsidianReader fails to resolve symlinks to their real paths and does not validate whether the resolved paths lie within the intended directory. This flaw enables attackers to place symlinks pointing to files outside the vault directory, which are then processed as valid Markdown files, potentially exposing sensitive information.

    Recommended action: Upgrade to 0.12.28 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  9. High, CVSS 7.5PyPIAmendedPublished

    LlamaIndex has an XML Entity Expansion vulnerability in its sitemap parser

    CVE-2025-3225 · GHSA-w42r-mrx7-c633

    Affected
    • PyPI llama-index >= 0.12.21, < 0.12.29
    Fixed in
    0.12.29· Vendor fix available
    Issue
    An XML Entity Expansion vulnerability, also known as a 'billion laughs' attack, exists in the sitemap parser of the run-llama/llamaindex repository, specifically affecting the Papers Loaders package before version 0.3.2 (in llama-index v0.10.0 and above through v0.12.29). This vulnerability allows an attacker to supply a malicious Sitemap XML, leading to a Denial of Service (DoS) by exhausting system memory and potentially causing a system crash. The issue is resolved in version 0.3.2 (in llama-index 0.12.29).

    Recommended action: Upgrade to 0.12.29 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  10. Medium, CVSS 5.3PyPIAmendedPublished

    LlamaIndex vulnerability in ArxivReader class can cause MD5 hash collisions

    CVE-2025-3044 · GHSA-p7j4-jwjf-5x9w

    Affected
    • PyPI llama-index < 0.12.28
    Fixed in
    0.12.28· Vendor fix available
    Issue
    A vulnerability in the ArxivReader class of the run-llama/llamaindex repository allows for MD5 hash collisions when generating filenames for downloaded papers. This can lead to data loss as papers with identical titles but different contents may overwrite each other, preventing some papers from being processed for AI model training. The issue is resolved in llama-index-readers-papers version 0.3.1 (in llama-index 0.12.28).

    Recommended action: Upgrade to 0.12.28 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  11. Medium, CVSS 5.0PyPIAmendedPublished

    LlamaIndex has Incomplete Documentation of Program Execution related to JsonPickleSerializer component

    CVE-2025-3108 · GHSA-m84c-4c34-28gf

    Affected
    • PyPI llama-index >= 0.12.27, < 0.12.41
    Fixed in
    0.12.41· Vendor fix available
    Issue
    Incomplete Documentation of Program Execution exists in the run-llama/llamaindex library's JsonPickleSerializer component, affecting versions v0.12.27 through v0.12.40. This vulnerability allows remote code execution due to an insecure fallback to Python's pickle module. JsonPickleSerializer prioritizes deserialization using pickle.loads(), which can execute arbitrary code when processing untrusted data. Attackers can exploit this by crafting malicious payloads to achieve full system compromise. The root cause involves the use of an insecure fallback strategy without sufficient input validation or protective safeguards. Version 0.12.41 renames JsonPickleSerializer to PickleSerializer and adds a warning to the docs to only use PickleSerializer to deserialize safe things.

    Recommended action: Upgrade to 0.12.41 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  12. Critical, CVSS 9.8PyPIAmendedPublished

    llama_index vulnerable to SQL Injection

    CVE-2025-1793 · GHSA-v3c8-3pr6-gr7p

    Affected
    • PyPI llama-index < 0.12.28
    Fixed in
    0.12.28· Vendor fix available
    Issue
    Multiple vector store integrations in run-llama/llamaindex 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.

    Recommended action: Upgrade to 0.12.28 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. Critical, CVSS 9.8PyPIAmendedPublished

    LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

    CVE-2025-1750 · GHSA-6mcc-q3mg-3qg6

    Affected
    • PyPI llama-index >= 0.12.19, < 0.12.21
    Fixed in
    0.12.21· Vendor fix available
    Issue
    An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llamaindex version v0.12.19. This vulnerability allows an attacker to manipulate the refdocid parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).

    Recommended action: Upgrade to 0.12.21 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  14. High, CVSS 7.5PyPIAmendedPublished

    LlamaIndex Vulnerable to Denial of Service (DoS)

    CVE-2025-1752 · GHSA-7c85-87cp-mr6g

    Affected
    • PyPI llama-index >= 0.12.15, < 0.12.21
    Fixed in
    0.12.21· Vendor fix available
    Issue
    A Denial of Service (DoS) vulnerability has been identified in the KnowledgeBaseWebReader class of the run-llama/llamaindex project, affecting version ~ latest(v0.12.15). The vulnerability arises due to inappropriate secure coding measures, specifically the lack of proper implementation of the maxdepth parameter in the getarticleurls function. This allows an attacker to exhaust Python's recursion limit through repeated function calls, leading to resource consumption and ultimately crashing the Python process.

    Recommended action: Upgrade to 0.12.21 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. High, CVSS 7.1PyPIAmendedPublished

    LlamaIndex vulnerable to Creation of Temporary File in Directory with Insecure Permissions

    CVE-2024-12911 · GHSA-jmgm-gx32-vp4w

    Affected
    • PyPI llama-index < 0.12.3
    Fixed in
    0.12.3· Vendor fix available
    Issue
    A vulnerability in the defaultjsonalyzer function of the JSONalyzeQueryEngine in the run-llama/llamaindex repository allows for SQL injection via prompt injection. This can lead to arbitrary file creation and Denial-of-Service (DoS) attacks. The vulnerability affects the latest version and is fixed in version 0.12.3.

    Recommended action: Upgrade to 0.12.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. Medium, CVSS 5.9PyPIAmendedPublished

    LlamaIndex Uncontrolled Resource Consumption vulnerability

    CVE-2024-12910 · GHSA-jvpf-xf32-2w4q

    Affected
    • PyPI llama-index < 0.12.9
    Fixed in
    0.12.9· Vendor fix available
    Issue
    A vulnerability in the KnowledgeBaseWebReader class of the run-llama/llamaindex repository, version latest, allows an attacker to cause a Denial of Service (DoS) by controlling a URL variable to contain the root URL. This leads to infinite recursive calls to the getarticleurls method, exhausting system resources and potentially crashing the application.

    Recommended action: Upgrade to 0.12.9 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. Critical, CVSS 9.3PyPIAmendedPublished

    LlamaIndex includes an exec call for import {cls_name}

    CVE-2024-45201 · GHSA-fxc2-8m62-m85x

    Affected
    • PyPI llama-index < 0.10.38
    Fixed in
    0.10.38· Vendor fix available
    Issue
    An issue was discovered in llamaindex before 0.10.38. download/integration.py includes an exec call for import {clsname}.

    Recommended action: Upgrade to 0.10.38 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)osv.dev (2)github.com (3)Source checked Evidence →
  18. High, CVSS 8.8PyPIAmendedPublished

    RunGptLLM class in LlamaIndex has a command injection

    CVE-2024-4181 · GHSA-pw38-xv9x-h8ch

    Affected
    • PyPI llama-index < 0.10.13
    Fixed in
    0.10.13· Vendor fix available
    Issue
    A command injection vulnerability exists in the RunGptLLM class of the llamaindex library, version 0.9.47, used by the RunGpt framework from JinaAI to connect to Language Learning Models (LLMs). The vulnerability arises from the improper use of the eval function, allowing a malicious or compromised LLM hosting provider to execute arbitrary commands on the client's machine. This issue was fixed in version 0.10.13. The exploitation of this vulnerability could lead to a hosting provider gaining full control over client machines.

    Recommended action: Upgrade to 0.10.13 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  19. Critical, CVSS 9.3PyPIAmendedPublished

    llama-index vulnerable to arbitrary code execution

    CVE-2023-39662 · GHSA-2xxc-73fv-36f7

    Affected
    • PyPI llama-index < 0.9.14
    Fixed in
    0.9.14· Vendor fix available
    Issue
    An issue in llamaindex v.0.7.13 and before allows a remote attacker to execute arbitrary code via the exec parameter in PandasQueryEngine function.

    Recommended action: Upgrade to 0.9.14 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →