CVE-2025-6211
MEDIUM 6.5CVSS 3.0LlamaIndex 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 version 0.12.28, 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.
- Published
- 10 Jul 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-440
- Also known as
- GHSA-5hq9-5r78-2gjhPYSEC-2026-1566PYSEC-2026-2606
- Sources
- NVDJSONOSV GHSA-5hq9-5r78-2gjhJSONOSV PYSEC-2026-1566JSONOSV PYSEC-2026-2606JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | MEDIUM 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.0 | MEDIUM 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | PyPA | CVSS 3.0 | MEDIUM 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | llamaindex | llamaindexcpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:* |
< 0.3.1 | 0.3.1 |
| OSV | PyPI | llama-index | < 0.12.41 | 0.12.41 |
| OSV | PyPI | llama-index-readers-docugami | < 0.3.1 | 0.3.1 |
References
- https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352 · Patch, WEB
- https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-6211 · ADVISORY
- https://github.com/run-llama/llama_index · PACKAGE
- https://pypi.org/project/llama-index-readers-docugami · PACKAGE
- https://github.com/advisories/GHSA-5hq9-5r78-2gjh · ADVISORY
- https://pypi.org/project/llama-index · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 10 Jul 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jul 2025)