llama-index-core vulnerable to Uncontrolled Resource Consumption
CVE-2025-6208 · GHSA-488g-hw5f-x29p · published 2026-02-02
- Severity
- Medium
- CVSS score
- 5.3
- Chance of exploitation (EPSS)
- 0.41%
- Fixed in
- 0.12.41
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
The SimpleDirectoryReader component in llama_index.core version 0.12.23 suffers from uncontrolled memory consumption due to a resource management flaw. The vulnerability arises because the user-specified file limit (num_files_limit) is applied after all files in a directory are loaded into memory. This can lead to memory exhaustion and degraded performance, particularly in environments with limited resources. The issue is resolved in version 0.12.41.
Upgrade llama-index-core to 0.12.41 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.41 | 0.12.41 |
- 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.