Browse / AI Framework and Platform Flaws / CVE-2025-5302
LlamaIndex affected by a Denial of Service (DOS) in JSONReader
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Denial of service
- Affected
- llama-index-core (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
Deeply nested JSON input causes unbounded recursion in the reader, exceeding Python's recursion limit and exhausting resources or crashing the process. (Our summary, written by a model. The source text is below.)
Details
A denial of service vulnerability exists in the JSONReader component of the run-llama/llama_index repository, specifically in version v0.12.37. The vulnerability is caused by uncontrolled recursion when parsing deeply nested JSON files, which can lead to Python hitting its maximum recursion depth limit. This results in high resource consumption and potential crashes of the Python process. The issue is resolved in version 0.12.38.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5302
- https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/70041b81-de9e-4046-8c0e-6ccd557048a6
Source: GitHub Advisory Database, used under CC BY 4.0.