LlamaIndex Improper Handling of Exceptional Conditions vulnerability
CVE-2024-12704 · GHSA-j3wr-m6xh-64hg · published 2025-03-20 · updated 2026-02-24
- Severity
- High
- CVSS score
- 7.5
- Chance of exploitation (EPSS)
- 0.83%
- Fixed in
- 0.12.6
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A vulnerability in the LangChainLLM class of the run-llama/llamaindex repository, version v0.12.5, allows for a Denial of Service (DoS) attack. The streamcomplete method executes the llm using a thread and retrieves the result via the getresponsegen method of the StreamingGeneratorCallbackHandler class. If the thread terminates abnormally before the llm.predict is executed, there is no exception handling for this case, leading to an infinite loop in the getresponse_gen function. This can be triggered by providing an input of an incorrect type, causing the thread to terminate and the process to continue running indefinitely.
Upgrade llama-index-core to 0.12.6 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.6 | 0.12.6 |
- 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.