LlamaIndex vulnerable to DoS attack through uncontrolled recursive JSON parsing
CVE-2025-5472 · GHSA-3wxx-q3gv-pvvv · published 2025-07-07 · updated 2025-07-08
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.39%
- Fixed in
- 0.12.38
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
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.
Upgrade llama-index-core to 0.12.38 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| llama-index-core | PyPI | < 0.12.38 | 0.12.38 |
- HightsParticles: Unbounded HTTP Request Body Buffering in @tsparticles/mcp-server Leads to Remote DoS@tsparticles/mcp-server
- HighMissing request-wide media budget allows single-request frontend resource exhaustionvllm
- HighMCP TypeScript SDK: HTTP server transports and handlers did not limit request body size or JSON-RPC batch length@modelcontextprotocol/hono, @modelcontextprotocol/node, @modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighvLLM : DoS via unvalidated mm_processor_kwargs in multimodal image processors (Isaac, InternVL, H2OVL, etc.)vllm
- HighMCP TypeScript SDK: One HTTP request within the default size limit could exhaust server memory during validation@modelcontextprotocol/sdk, @modelcontextprotocol/server
- HighFrame-count cap bypass in VideoMediaIO.load_base64 for video/jpeg via media_io_kwargs.video.num_framesvllm
- CriticalLlamaIndex includes an exec call for `import {cls_name}`llama-index-core
- Criticalllama-index-core Command Injection vulnerabilityllama-index-core
- Criticalllama-index-core Prompt Injection vulnerability leading to Arbitrary Code Executionllama-index-core
- Highllama-index-core insecurely handles temporary filesllama-index-core
- HighLlamaIndex affected by a Denial of Service (DOS) in JSONReaderllama-index-core
- HighLlamaIndex vulnerable to Path Traversal attack through its encode_image functionllama-index-core
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.