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.
History

Tue, 08 Jul 2025 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Mon, 07 Jul 2025 12:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 07 Jul 2025 10:00:00 +0000

Type Values Removed Values Added
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.
Title Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index
Weaknesses CWE-674
References
Metrics cvssV3_0

{'score': 6.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: @huntr_ai

Published: 2025-07-07T09:55:56.730Z

Updated: 2025-07-07T11:23:35.709Z

Reserved: 2025-06-02T14:07:59.604Z

Link: CVE-2025-5472

cve-icon Vulnrichment

Updated: 2025-07-07T11:23:31.772Z

cve-icon NVD

Status : Received

Published: 2025-07-07T10:15:28.873

Modified: 2025-07-07T10:15:28.873

Link: CVE-2025-5472

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-07-07T09:55:56Z

Links: CVE-2025-5472 - Bugzilla