Vulnerabilities · 2025 · Llamaindex
CVE-2025-5472
Llamaindex vulnerability
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.
Affected products
Llamaindex. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Llamaindex runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635 · Patch
- huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-5472
- github.com/advisories/GHSA-3wxx-q3gv-pvvv
- nvd.nist.gov/vuln/detail/CVE-2025-5472
- cve.org/CVERecord?id=CVE-2025-5472
More vulnerabilities in Llamaindex products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.