CVE-2024-12910: LlamaIndex Uncontrolled Resource Consumption vulnerability
LlamaIndex's `KnowledgeBaseWebReader` can be sent into infinite recursion if an attacker controls its URL variable and sets it to the root URL. The repeated `get_article_urls` calls exhaust resources and can crash the application. Fixed in llama-index 0.12.9.
Published Mar 20, 2025 · Updated Oct 15, 2025 · Analysis Nov 1, 2026
What an attacker can do
KnowledgeBaseWebReader crawls a knowledge base site and collects article links through the recursive method get_article_urls. If the starting URL variable points at the root URL, the method keeps calling itself and never ends. Memory and CPU rise until the process fails. The CVSS vector is network with high attack complexity, no privileges, and scores availability only.
The attacker must control the URL the application hands to this reader. That fits an app, agent or RAG pipeline that lets users give a knowledge base address to index. One request can crash the worker doing the ingestion. The fix commit adds a max_depth parameter to get_article_urls, default 100, stored by __init__ and passed through load_data. The excerpt I read does not show where the depth is compared, so I cannot describe the exact stop condition.
Who is affected
The llama-index pip package before 0.12.9, in code that uses KnowledgeBaseWebReader with a URL that untrusted users can influence. Check the version:
pip show llama-indexThen search your code for KnowledgeBaseWebReader. The reader ships as its own integration package, so also check the installed llama-index-readers-web version.
llama-index
- Ecosystem
- PyPI
- Affected
- < 0.12.9
- Fixed in
- 0.12.9
- Check
pip show llama-index
How to fix it
Upgrade to llama-index 0.12.9.
pip install -U "llama-index>=0.12.9"The fix adds a max_depth argument, default 100, to KnowledgeBaseWebReader. The sources give no other workaround. Until you upgrade, do not pass user-supplied URLs to this reader, or validate them against an allowlist, and run ingestion jobs with memory and time limits.
How to tell if you were hit
Look for ingestion workers whose memory and CPU grow steadily while crawling a single site, ending in a RecursionError or an out-of-memory kill. Check logs for a very large number of repeated requests to the same knowledge base root URL from your server.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
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.
Questions
- Which LlamaIndex version fixes CVE-2024-12910?
llama-index 0.12.9. Earlier versions are listed as vulnerable.
- Who can trigger CVE-2024-12910?
Anyone who can set the URL your app passes to
KnowledgeBaseWebReader. Apps that use a fixed, trusted URL have far less exposure.- Does the fix change behaviour?
Yes. Crawl depth is now limited by
max_depth, which defaults to 100.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More LlamaIndex vulnerabilities
All LlamaIndex entriesCVE-2025-6208
llama-index-core vulnerable to Uncontrolled Resource Consumption
medium5.3Feb 2, 2026CVE-2025-7707
llama-index has Insecure Temporary File
high7.1Oct 13, 2025CVE-2025-7647
llama-index-core insecurely handles temporary files
high7.3Sep 27, 2025CVE-2025-5302
LlamaIndex affected by a Denial of Service (DOS) in JSONReader
high8.6Aug 26, 2025CVE-2025-6211
LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
medium6.5Jul 10, 2025CVE-2025-3108
LlamaIndex has Incomplete Documentation of Program Execution related to JsonPickleSerializer component
medium5.0Jul 7, 2025
