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.
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.
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.
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.
The DocugamiReader class used MD5 hashing to generate IDs for document chunks, so structurally distinct chunks with identical text received the same ID and one overwrote the other. This could cause loss of important document content, broken chunk hierarchies, and inaccurate AI responses.
The encode_image function in LlamaIndex did not properly validate the image_path input, allowing path traversal sequences. An attacker could read arbitrary files on the server, including sensitive system files.
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.
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.
The sitemap parser in LlamaIndex's Papers Loaders package was vulnerable to XML entity expansion (a 'billion laughs' attack). An attacker could supply a malicious Sitemap XML to exhaust system memory and cause a denial of service or crash.
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.
The JsonPickleSerializer component in LlamaIndex falls back to Python's pickle module when deserialising data, which can execute arbitrary code. An attacker who supplies untrusted serialised data could achieve remote code execution and full system compromise.
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.
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.
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.
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.
The default_jsonalyzer function in JSONalyzeQueryEngine is vulnerable to SQL injection via prompt injection, allowing an attacker to create arbitrary files and cause denial of service. The issue is fixed in version 0.12.3.
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.
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.
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.
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.
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.
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.
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.
RL
run-llama/llama_index
Critical
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.