Skip to content

← Public intelligence

PyPI package

llama-index-core

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

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

  1. Medium, CVSS 5.3PyPIAmendedPublished

    llama-index-core vulnerable to Uncontrolled Resource Consumption

    CVE-2025-6208 · GHSA-488g-hw5f-x29p

    Affected
    • PyPI llama-index-core < 0.12.41
    Fixed in
    0.12.41· Vendor fix available
    Issue
    The SimpleDirectoryReader component in llamaindex.core version 0.12.23 suffers from uncontrolled memory consumption due to a resource management flaw. The vulnerability arises because the user-specified file limit (numfileslimit) is applied after all files in a directory are loaded into memory. This can lead to memory exhaustion and degraded performance, particularly in environments with limited resources. The issue is resolved 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)github.com (2)Source checked Evidence →
  2. High, CVSS 7.3PyPIAmendedPublished

    llama-index-core insecurely handles temporary files

    CVE-2025-7647 · GHSA-cr7q-2w66-hjcm

    Affected
    • PyPI llama-index-core < 0.13.0
    Fixed in
    0.13.0· Vendor fix available
    Issue
    The llama-index-core package, up to version 0.12.44, contains a vulnerability in the getcachedir() function where a predictable, hardcoded directory path /tmp/llamaindex is used on Linux systems without proper security controls. This vulnerability allows attackers on multi-user systems to steal proprietary models, poison cached embeddings, or conduct symlink attacks. The issue affects all Linux deployments where multiple users share the same system. The vulnerability is classified under CWE-379, CWE-377, and CWE-367, indicating insecure temporary file creation and potential race conditions.

    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 →
  3. High, CVSS 8.6PyPIAmendedPublished

    LlamaIndex affected by a Denial of Service (DOS) in JSONReader

    CVE-2025-5302 · GHSA-7753-xrfw-ch36

    Affected
    • PyPI llama-index-core < 0.12.38
    Fixed in
    0.12.38· Vendor fix available
    Issue
    A denial of service vulnerability exists in the JSONReader component of the run-llama/llamaindex repository, specifically in version v0.12.37. The vulnerability is caused by uncontrolled recursion when parsing deeply nested JSON files, which can lead to Python hitting its maximum recursion depth limit. This results in high resource consumption and potential crashes of the Python process. 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)github.com (2)Source checked Evidence →
  4. 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-core >= 0.11.23, < 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 →
  5. 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-core < 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 →
  6. 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-core >= 0.11.15, <= 0.12.40
    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 →
  7. Critical, CVSS 9.3PyPIAmendedPublished

    LlamaIndex includes an exec call for import {cls_name}

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

    Affected
    • PyPI llama-index-core < 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 →
  8. Critical, CVSS 9.8PyPIAmendedPublished

    llama-index-core Command Injection vulnerability

    CVE-2024-3271 · GHSA-r6gp-rff2-p3hf

    Affected
    • PyPI llama-index-core < 0.10.24
    Fixed in
    0.10.24· Vendor fix available
    Issue
    A command injection vulnerability exists in the run-llama/llamaindex repository, specifically within the safeeval function. Attackers can bypass the intended security mechanism, which checks for the presence of underscores in code generated by LLM, to execute arbitrary code. This is achieved by crafting input that does not contain an underscore but still results in the execution of OS commands. The vulnerability allows for remote code execution (RCE) on the server hosting the application.

    Recommended action: Upgrade to 0.10.24 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 →
  9. Critical, CVSS 9.8PyPIAmendedPublished

    llama-index-core Prompt Injection vulnerability leading to Arbitrary Code Execution

    CVE-2024-3098 · GHSA-wvpx-g427-q9wc

    Affected
    • PyPI llama-index-core < 0.10.24
    Fixed in
    0.10.24· Vendor fix available
    Issue
    A vulnerability was identified in the `exec_utils` class of the `llama_index` package, specifically within the `safe_eval` function, allowing for prompt injection leading to arbitrary code execution. This issue arises due to insufficient validation of input, which can be exploited to bypass method restrictions and execute unauthorized code. The vulnerability is a bypass of the previously addressed CVE-2023-39662, demonstrated through a proof of concept that creates a file on the system by exploiting the flaw.

    Recommended action: Upgrade to 0.10.24 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 →