Skip to content
DoS Disclosed report Intermediate CVE-2024-12910

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

Originally disclosed on huntr

A vulnerability in the KnowledgeBaseWebReader class of the run-llama/llama_index 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 get_article_urls method, exhausting system resources and potentially crashing the application.

From the GitHub Advisory Database (GHSA-jvpf-xf32-2w4q, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

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

Root cause

Likely, the get_article_urls method recursively calls itself without a proper termination condition when the input URL is the root URL.

Impact

An attacker could cause a denial of service, exhausting system resources and potentially crashing the application.

What the attacker needed

Control over a URL variable

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.

This is a denial-of-service bug: a program can be made to crash or become unusable. In this case, a web reader component gets stuck in an endless loop when given a certain URL, using up all the computer's resources.

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.

More from run-llama/llama_index

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.