LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing
        
  Moderate severity
        
          GitHub Reviewed
      
        Published
          Jul 7, 2025 
          to the GitHub Advisory Database
          •
          Updated Jul 8, 2025 
      
  
Description
        Published by the National Vulnerability Database
      Jul 7, 2025 
    
  
        Published to the GitHub Advisory Database
      Jul 7, 2025 
    
  
        Last updated
      Jul 8, 2025 
    
  
        Reviewed
      Jul 8, 2025 
    
  
The JSONReader in run-llama/llama_index versions 0.12.28 is vulnerable to a stack overflow due to uncontrolled recursive JSON parsing. This vulnerability allows attackers to trigger a Denial of Service (DoS) by submitting deeply nested JSON structures, leading to a RecursionError and crashing applications. The root cause is the unsafe recursive traversal design and lack of depth validation, which makes the JSONReader susceptible to stack overflow when processing deeply nested JSON. This impacts the availability of services, making them unreliable and disrupting workflows. The issue is resolved in version 0.12.38.
References