id: PYSEC-2025-251 published: "2025-07-07T10:15:28.873Z" modified: "2026-07-13T05:49:41.165402Z" aliases: - CVE-2025-5472 details: 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: - package: name: llama-index ecosystem: PyPI purl: pkg:pypi/llama-index ranges: - type: ECOSYSTEM events: - introduced: 0.12.28 - fixed: 0.12.38 versions: - 0.12.28 - 0.12.29 - 0.12.30 - 0.12.31 - 0.12.32 - 0.12.33 - 0.12.34 - 0.12.35 - 0.12.36 - 0.12.37 ecosystem_specific: {} references: - type: FIX url: https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635 - type: EVIDENCE url: https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4 severity: - type: CVSS_V3 score: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H