The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-1752

CVE-2025-1752: Llamaindex Llamaindex DoS Vulnerability

CVE-2025-1752 is a denial of service flaw in Llamaindex Llamaindex that allows attackers to exhaust recursion limits and crash Python processes. This article covers the technical details, affected versions, and mitigation.

Published: May 11, 2026

CVE-2025-1752 Overview

CVE-2025-1752 is a Denial of Service (DoS) vulnerability in the KnowledgeBaseWebReader class of the run-llama/llama_index project, affecting versions up to and including v0.12.15. The flaw stems from the get_article_urls function failing to enforce the max_depth parameter during recursive crawling. An unauthenticated network attacker can exhaust Python's recursion limit through repeated function calls. This causes the Python process to crash, disrupting any service that relies on the affected reader. The issue is tracked as [CWE-674: Uncontrolled Recursion].

Critical Impact

Remote attackers can trigger uncontrolled recursion, exhausting Python's recursion limit and crashing the LlamaIndex worker process without authentication.

Affected Products

  • run-llama/llama_index (llamaindex)
  • llama-index-readers-web package versions through 0.3.5
  • LlamaIndex versions up to and including v0.12.15

Discovery Timeline

  • 2025-05-10 - CVE-2025-1752 published to NVD
  • 2025-10-15 - Last updated in NVD database

Technical Details for CVE-2025-1752

Vulnerability Analysis

The vulnerability resides in the KnowledgeBaseWebReader class within llama-index-integrations/readers/llama-index-readers-web/llama_index/readers/web/knowledge_base/base.py. The get_article_urls function recursively crawls a knowledge base to discover article URLs. While the function signature accepts a max_depth parameter, the original implementation never tracked the current recursion depth or compared it against the limit.

As a result, when the reader processes an attacker-controlled site containing dense link graphs or cyclic references, Python continues calling get_article_urls recursively until the interpreter's default recursion limit is reached. Once exceeded, Python raises RecursionError and terminates the worker.

Applications that embed LlamaIndex inside long-running services, such as retrieval-augmented generation (RAG) pipelines or autonomous agent frameworks, lose availability whenever the affected reader is invoked against hostile input.

Root Cause

The max_depth parameter was declared but unused. Without a depth counter passed between recursive calls, the function had no mechanism to terminate traversal. This is a classic uncontrolled recursion defect [CWE-674], where the depth-bounding control exists in the API contract but is absent from the implementation.

Attack Vector

The attack requires no authentication or user interaction. An attacker hosts a malicious web page or knowledge base that links to deeply nested or self-referential URLs. When a victim application invokes KnowledgeBaseWebReader against that target, recursion expands until the Python process crashes.

python
         return {"title": title, "subtitle": subtitle, "body": body, "url": url}
 
     def get_article_urls(
-        self, browser: Any, root_url: str, current_url: str, max_depth: int = 100
+        self,
+        browser: Any,
+        root_url: str,
+        current_url: str,
+        max_depth: int = 100,
+        depth: int = 0,
     ) -> List[str]:
         """
         Recursively crawl through the knowledge base to find a list of articles.

Source: run-llama/llama_index commit 3c65db2

Detection Methods for CVE-2025-1752

Indicators of Compromise

  • Unexpected RecursionError exceptions in Python application logs originating from llama_index/readers/web/knowledge_base/base.py.
  • Repeated worker process crashes or restarts coinciding with calls to KnowledgeBaseWebReader.
  • Spikes in outbound HTTP requests from LlamaIndex hosts to a single external domain followed by process termination.

Detection Strategies

  • Inventory Python environments for installed versions of llama-index-readers-web at or below 0.3.5, and any LlamaIndex deployment at or below v0.12.15.
  • Instrument the get_article_urls call path with depth logging or stack-size telemetry to surface abnormal recursion.
  • Review web reader inputs and validate that user-supplied URLs cannot be passed directly into KnowledgeBaseWebReader without sanitization.

Monitoring Recommendations

  • Alert on RecursionError, MemoryError, or unexpected SIGKILL events in services that import llama_index.readers.web.
  • Monitor outbound network traffic for crawl patterns directed at a single host, particularly when paired with worker restarts.
  • Track package upgrades through software composition analysis to confirm patched versions are deployed across all environments.

How to Mitigate CVE-2025-1752

Immediate Actions Required

  • Upgrade llama-index-readers-web to version 0.3.6 or later, which contains the fix from commit 3c65db2.
  • Audit application code for any invocation of KnowledgeBaseWebReader exposed to untrusted URLs or user input.
  • Apply input validation and allowlists to restrict which domains the reader may crawl.

Patch Information

The maintainers released the fix in run-llama/llama_index commit 3c65db2, shipped in llama-index-readers-web version 0.3.6. The patch introduces an explicit depth parameter that increments on each recursive call and terminates when it exceeds max_depth. Additional context is available in the Huntr Security Bounty report.

Workarounds

  • If immediate upgrade is not possible, wrap calls to KnowledgeBaseWebReader in a subprocess with a hard timeout to contain crashes.
  • Restrict the crawler to trusted internal knowledge bases via network egress controls.
  • Lower Python's recursion limit through sys.setrecursionlimit to fail fast and contain resource consumption.
bash
# Upgrade the affected package to the patched release
pip install --upgrade "llama-index-readers-web>=0.3.6"

# Verify installed version
pip show llama-index-readers-web | grep -i version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLlamaindex

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.16%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-674
  • Technical References
  • Huntr Security Bounty
  • Vendor Resources
  • GitHub Commit Change
  • Related CVEs
  • CVE-2025-3225: Llamaindex XML Entity Expansion DoS Flaw

  • CVE-2025-1753: Llamaindex CLI RCE Vulnerability

  • CVE-2025-1750: Llamaindex DuckDBVectorStore SQLi Vulnerability

  • CVE-2025-1793: Llamaindex SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English