CVE-2025-1752
LlamaIndex vulnerability analysis and mitigation

Overview

A Denial of Service (DoS) vulnerability (CVE-2025-1752) was identified in the KnowledgeBaseWebReader class of the run-llama/llama_index project, affecting version ~ latest(v0.12.15). The vulnerability was discovered on May 10, 2025, and stems from inappropriate secure coding measures in the get_article_urls function. The vulnerability has been assigned a CVSS v3.0 base score of 7.5 (HIGH) (NVD, Wiz).

Technical details

The vulnerability arises from the improper implementation of the max_depth parameter in the get_article_urls function within the KnowledgeBaseWebReader class. This implementation flaw allows attackers to exhaust Python's recursion limit through repeated function calls. The vulnerability is categorized under CWE-400 (Uncontrolled Resource Consumption) and has been assigned a CVSS v3.0 vector string of CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD, Red Hat Security).

Impact

When successfully exploited, this vulnerability leads to resource consumption that ultimately results in crashing the Python process. This creates a denial of service condition, making the system unavailable to legitimate users (Wiz, NVD).

Exploitability

The vulnerability can be exploited by crafting malicious input that exhausts Python's recursion limit. The attack requires no special privileges or user interaction, making it relatively straightforward to execute (Red Hat Security).

Mitigation and workarounds

A fix has been implemented and is available through commit 3c65db2947271de3bd1927dc66a044da385de4da. The patch properly implements the max_depth parameter to prevent recursive function calls from exceeding the limit (Github Commit).

Additional resources


SourceThis report was generated using AI

Related LlamaIndex vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-58339HIGH8.7
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesJan 12, 2026
CVE-2024-14021HIGH8.4
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesJan 12, 2026
CVE-2025-7707HIGH7.8
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesOct 13, 2025
CVE-2025-6209HIGH7.5
  • Python logoPython
  • llama-index
NoYesJul 07, 2025
CVE-2025-6211MEDIUM6.5
  • Python logoPython
  • llama-index
NoYesJul 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management