Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index
run-llama/llama_index
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-core PyPI |
|
|
| llama-index PyPI |
|
|
run-llama/llama_index
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-core PyPI |
|
|
| llama-index PyPI |
|
|
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.
From the CVE record · @huntr_ai
JSONReader recursively parses JSON without validating nesting depth. An attacker who can submit deeply nested JSON for processing can trigger a RecursionError and crash the application. The input does not specify whether network access, authentication, or user interaction is required.
Check applications using PyPI llama-index-core versions below 0.12.38 or llama-index versions from 0.12.28 up to, but not including, 0.12.38.