Skip to content

huntr

run-llama/llama_index

Every publicly disclosed report for run-llama/llama_index and what kind of bugs they were.

disclosed reports
24
most reported class
DoS
bug classes found
8
first disclosure
2024
Find run-llama/llama_index on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what run-llama/llama_index chose to make public.

DoS

llama-index-core vulnerable to Uncontrolled Resource Consumption

The SimpleDirectoryReader component in llama_index.core applied the user-specified file limit only after loading all files in a directory into memory. An attacker could cause memory exhaustion and degraded performance by pointing it at a directory with many files.

run-llama/llama_index

Medium
Misconfiguration

llama-index has Insecure Temporary File

The llama_index library sets the NLTK data directory to a subdirectory of the codebase by default, which is world-writable in multi-user environments. This allows local users to overwrite, delete, or corrupt NLTK data files, leading to denial of service, data tampering, or privilege escalation.

run-llama/llama_index

High
Race condition

llama-index-core insecurely handles temporary files

The llama-index-core package uses a predictable, hardcoded temporary directory on Linux without proper security controls. An attacker on a multi-user system could steal proprietary models, poison cached embeddings, or conduct symlink attacks.

run-llama/llama_index

High
DoS

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

The JSONReader component in LlamaIndex parsed deeply nested JSON without a depth limit, so a crafted file could exhaust Python's recursion limit and crash the process. An attacker who can supply a JSON file could cause a denial of service through high resource consumption.

run-llama/llama_index

High
DoS

LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing

The JSONReader component in LlamaIndex versions up to 0.12.28 recursively parses JSON without a depth limit, so a deeply nested JSON document causes a stack overflow and crashes the application. An attacker can submit such a document to trigger a denial of service, disrupting availability.

run-llama/llama_index

Medium
Crypto

LlamaIndex vulnerability in ArxivReader class can cause MD5 hash collisions

The ArxivReader class generated filenames using MD5 hashes of paper titles, so papers with identical titles but different contents could collide and overwrite each other. This could cause data loss and prevent some papers from being processed for AI model training.

run-llama/llama_index

Medium
Path traversal

LlamaIndex is vulnerable to Path Traversal attack through its ObsidianReader class

The ObsidianReader class in LlamaIndex fails to resolve symbolic links and does not check that resolved paths stay inside the vault directory. An attacker who can place a symlink in the vault can cause files outside the vault to be read and processed as Markdown, exposing sensitive information.

run-llama/llama_index

High
SQL injection

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

Critical
SQL injection

LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

The delete function in DuckDBVectorStore did not properly sanitise the ref_doc_id parameter, allowing SQL injection. An attacker could use this to read and write arbitrary files on the server, potentially leading to remote code execution.

run-llama/llama_index

Critical
RCE

LLama-Index CLI OS command injection vulnerability

The LLama-Index CLI passed the --files argument directly into os.system without sanitisation, allowing an attacker who controls that argument to inject and execute arbitrary shell commands. This could lead to arbitrary code execution locally or remotely if a web application calls the CLI with a user-controlled filename.

run-llama/llama_index

High
DoS

LlamaIndex Vulnerable to Denial of Service (DoS)

The KnowledgeBaseWebReader class in LlamaIndex does not properly enforce the max_depth parameter in its get_article_urls function, allowing an attacker to trigger excessive recursion. This can exhaust Python's recursion limit and crash the process, causing a denial of service.

run-llama/llama_index

High
SQL injection

llama-index-packs-finchat SQL Injection vulnerability

The FinanceChatLlamaPack's database agent passed user input directly into SQL queries, allowing an attacker to inject arbitrary SQL. This could lead to remote code execution via PostgreSQL's large object functionality.

run-llama/llama_index

Critical
DoS

LlamaIndex Uncontrolled Resource Consumption vulnerability

The KnowledgeBaseWebReader class in LlamaIndex allows an attacker to supply a root URL that causes infinite recursive calls to the get_article_urls method, exhausting system resources and potentially crashing the application.

run-llama/llama_index

Medium
DoS

LlamaIndex Improper Handling of Exceptional Conditions vulnerability

The stream_complete method in the LangChainLLM class starts a thread to run the LLM and then waits for a response generator. If the thread dies before the LLM call happens, no exception is handled and the generator loops forever, so a malformed input can hang the process indefinitely.

run-llama/llama_index

High
SQL injection

LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection

The DuckDB retriever built SQL queries without prepared statements, allowing an attacker to inject arbitrary SQL. This could lead to remote code execution by installing the shellfs extension and running malicious commands.

run-llama/llama_index

Critical
RCE

RunGptLLM class in LlamaIndex has a command injection

The RunGptLLM class in llama_index used the eval function improperly, allowing a malicious or compromised LLM hosting provider to execute arbitrary commands on the client's machine. This could lead to full control over client machines.

run-llama/llama_index

High
RCE

llama-index-core Command Injection vulnerability

The safe_eval function in llama-index-core tried to block dangerous code by rejecting underscores, but an attacker could supply code without underscores that still ran operating system commands. This allowed remote code execution on the server running the application.

run-llama/llama_index

Critical
AI / LLM

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

The safe_eval function in llama_index's exec_utils class insufficiently validates input, allowing a prompt injection to bypass method restrictions and execute arbitrary code. An attacker could exploit this to run unauthorised code, as demonstrated by creating a file on the system.

run-llama/llama_index

Critical