AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

LlamaIndexGHSA-3wxx-q3gv-pvvv

LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing

LlamaIndex

CVE-2025-5472 · Published Jul 7, 2025 · updated Jul 13, 2026

Medium6.5
Fix: upgrade to 0.12.38 or later
GitHub advisory

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 versions

PackageAffectedFixed in
llama-index-core
PyPI
< 0.12.380.12.38
Details and references
CVSS 3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-674
Also known as
CVE-2025-5472, PYSEC-2025-251, PYSEC-2026-1559

More LlamaIndex advisories

All LlamaIndex