LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
CVE-2025-6211 · GHSA-5hq9-5r78-2gjh · published 2025-07-10
- Severity
- Medium
- CVSS score
- 6.5
- Chance of exploitation (EPSS)
- 0.36%
- Fixed in
- 0.12.41
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Partial
- CISA SSVC
A vulnerability in the DocugamiReader class of the run-llama/llama_index repository, up to but excluding version 0.12.41, involves the use of MD5 hashing to generate IDs for document chunks. This approach leads to hash collisions when structurally distinct chunks contain identical text, resulting in one chunk overwriting another. This can cause loss of semantically or legally important document content, breakage of parent-child chunk hierarchies, and inaccurate or hallucinated responses in AI outputs. The issue is resolved in version 0.3.1.
Upgrade llama-index 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 | PyPI | < 0.12.41 | 0.12.41 |
- CriticalLiteLLM has SQL Injection in Proxy API key verificationlitellmExploited
- Criticaln8n Vulnerable to Remote Code Execution via Expression Injectionn8n, n8nExploited
- HighLiteLLM has a sandbox escape in custom-code guardraillitellmExploited
- HighLangflow affected by Remote Code Execution via validate_code() exec()langflowExploited
- CriticalJupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesjupyter-mcp-server
- Criticalmem0ai Databricks vector store vulnerable to SQL injectionmem0ai
- Criticalllama_index vulnerable to SQL Injectionllama-index
- CriticalSQL injection in llama-indexllama-index
- Criticalllama-index vulnerable to arbitrary code executionllama-index
- Highllama-index has Insecure Temporary Filellama-index
- HighLlamaIndex Vulnerable to Denial of Service (DoS)llama-index
- HighLlamaIndex vulnerable to Creation of Temporary File in Directory with Insecure Permissionsllama-index
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.