CVE-2024-12910 Denial of Service in run-llama/llama_index
An attacker can cause a denial of service in the llama_index library by triggering infinite recursion via a crafted URL in the KnowledgeBaseWebReader class.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-12910?
CVE-2024-12910 is a medium-severity denial of service vulnerability in run-llama/llama_index, published on 20 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-674
Which versions are affected by CVE-2024-12910?
3 open source packages ship an affected version, including llama-index. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
llama-index PyPI | All versions | 0.12.9 |
llama-index PyPI | All versions | 0.12.9 |
llama-index PyPI | All versions | 0.12.9 |
Products include Llamaindex Llamaindex.
How do I fix CVE-2024-12910?
Upgrade llama-index to 0.12.9 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-12910 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-12910 exists.
Other vulnerabilities in run-llama/llama_index
Sources
Also known as GHSA-jvpf-xf32-2w4q, PYSEC-2025-11.