Browse / RAG and Vector Store Weaknesses / CVE-2025-6211
LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class
- Class
- RAG and Vector Store Weaknesses (filed by a model that read the advisory)
- Technique
- Other weaknesses
- Affected
- llama-index (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- EPSS
- 0.4% chance of exploitation in 30 days
How it works, in short
Chunk IDs derived from MD5 of chunk text collide for structurally different chunks, so one overwrites the other in the index. (Our summary, written by a model. The source text is below.)
Details
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6211
- https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389
Source: GitHub Advisory Database, used under CC BY 4.0.