# CVE-2025-6211: MD5 Hash Collision in run-llama/llama_index

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-10T13:04:34.401Z
- Modified: 2026-09-10T03:50:25.877Z
- Also known as: GHSA-5hq9-5r78-2gjh, PYSEC-2026-1566, PYSEC-2026-2606
- Weaknesses: CWE-440
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.3.1
- llama-index (PyPI): before 0.12.41
- llama-index-readers-docugami (PyPI): before 0.3.1
- llamaindex llamaindex: before 0.3.1

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- PyPA Advisory Database: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389> (exploit, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352> (patch, 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)

## Sources

- CVE List: [CVE-2025-6211](https://www.cve.org/CVERecord?id=CVE-2025-6211), CVE Terms of Use, modified 2025-07-10
- GitHub Advisory Database: [GHSA-5hq9-5r78-2gjh](https://github.com/advisories/GHSA-5hq9-5r78-2gjh), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-6211](https://nvd.nist.gov/vuln/detail/CVE-2025-6211), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1566](https://osv.dev/vulnerability/PYSEC-2026-1566), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-2606](https://osv.dev/vulnerability/PYSEC-2026-2606), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-6211 · Whole record: https://cve.day/CVE-2025-6211.json · Rebuilt by cve.day 2026-11-25T22:59:01.094Z
