LlamaIndex affected by a Denial of Service (DOS) in JSONReader
CVE-2025-5302 · GHSA-7753-xrfw-ch36 · published 2025-08-26
- Severity
- High
- CVSS score
- 8.6
- Chance of exploitation (EPSS)
- 0.30%
- Fixed in
- 0.12.38
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A denial of service vulnerability exists in the JSONReader component of the run-llama/llama_index repository, specifically in version v0.12.37. The vulnerability is caused by uncontrolled recursion when parsing deeply nested JSON files, which can lead to Python hitting its maximum recursion depth limit. This results in high resource consumption and potential crashes of the Python process. 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 vulnerable to Path Traversal attack through its encode_image functionllama-index-core
- HighLlamaIndex Improper Handling of Exceptional Conditions vulnerabilityllama-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.