LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
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.
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2025-6211US | — | — | ||
A vulnerability in the DocugamiReader class of the run-llama/llama_index repository, up to version 0.12.28, involves the use of MD5 hashing to generate IDs for document chunks. Thi… | ||||
references
External citations — patches, advisories, analysis.
- https://github.com/advisories/GHSA-5hq9-5r78-2gjhADVISORY
- https://github.com/run-llama/llama_indexPACKAGE
- https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352WEB
- https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-6211ADVISORY
- https://pypi.org/project/llama-indexPACKAGE
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan