6.5medium
MD5 Hash Collision in run-llama/llama_index
- Severity
- 6.5medium CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-5hq9-5r78-2gjhPYSEC-2026-1566PYSEC-2026-2606
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| run-llama run-llama/llama_index | from unspecified before 0.3.1 | CVE List |
| llama-index (PyPI) | before 0.12.41 | GitHub Advisory Database, PyPA Advisory Database |
| llama-index-readers-docugami (PyPI) | before 0.3.1 | GitHub Advisory Database, PyPA Advisory Database |
| llamaindex llamaindex | before 0.3.1 | NVD |
All scores
| @huntr_ai | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| GitHub | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
| PyPA Advisory Database | 6.5medium CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Una vulnerabilidad en la clase DocugamiReader del repositorio run-llama/llama_index, hasta la versión 0.12.28, implica el uso de hash MD5 para generar identificadores para fragmentos de documentos. Este enfoque provoca colisiones de hash cuando fragmentos estructuralmente distintos contienen texto idéntico, lo que provoca que un fragmento sobrescriba a otro. Esto puede provocar la pérdida de contenido semántico o legalmente importante del documento, la ruptura de las jerarquías de fragmentos padre-hijo y respuestas inexactas o alucinadas en las salidas de IA. El problema se ha resuelto en la versión 0.3.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-6211 changed 2025-07-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5hq9-5r78-2gjh changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-6211 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1566 changed 2026-07-13 | CC-BY-4.0 |
| PyPA Advisory Database | PYSEC-2026-2606 changed 2026-07-13 | CC-BY-4.0 |