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
Originally disclosed on huntr
A Denial of Service (DoS) vulnerability has been identified in the KnowledgeBaseWebReader class of the run-llama/llama_index project, affecting version ~ latest(v0.12.15). The vulnerability arises due to inappropriate secure coding measures, specifically the lack of proper implementation of the max_depth parameter in the get_article_urls 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.
From the GitHub Advisory Database (GHSA-7c85-87cp-mr6g, CC BY 4.0).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could exhaust Python's recursion limit, consume resources, and crash the Python process, causing a denial of service.
What the attacker needed
Access to the vulnerable KnowledgeBaseWebReader
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A denial-of-service (DoS) attack makes a program or service unavailable, often by exhausting its resources. Here, a function that fetches article links can call itself repeatedly without a proper stopping point, eventually hitting Python's built-in recursion limit and crashing the whole process.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.