{"cve":"CVE-2025-5472","nvd":{"published":"2025-07-07T10:15:28.873","modified":"2026-06-17T09:47:59.190","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-674"],"references":["https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635","https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4"],"products":["llamaindex:llamaindex"],"source":"nvd","synced_at":"2026-10-19T22:04:28.436527499+00:00"},"epss":{"cve":"CVE-2025-5472","score":0.00388,"percentile":0.32937,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-3wxx-q3gv-pvvv","url":"https://osv.dev/vulnerability/GHSA-3wxx-q3gv-pvvv","summary":"LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing","modified":"2026-07-13T07:26:37.515124865Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.12.38"],"fixed":["0.12.38"]}]},{"id":"PYSEC-2025-251","url":"https://osv.dev/vulnerability/PYSEC-2025-251","summary":"","modified":"2026-07-13T07:26:37.515124865Z","packages":[{"ecosystem":"PyPI","name":"llama-index","purl":"pkg:pypi/llama-index","ranges":[">=0.12.28 <0.12.38"],"fixed":["0.12.38"]}]},{"id":"PYSEC-2026-1559","url":"https://osv.dev/vulnerability/PYSEC-2026-1559","summary":"LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing","modified":"2026-07-13T07:26:37.515124865Z","packages":[{"ecosystem":"PyPI","name":"llama-index-core","purl":"pkg:pypi/llama-index-core","ranges":["<0.12.38"],"fixed":["0.12.38"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}