Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-6211 EUVD-2025-20993GHSA-5hq9-5r78-2gjhPYSEC-2026-1566PYSEC-2026-2606

MD5 Hash Collision in run-llama/llama_index

Published Jul 10, 2025 · Updated Jul 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < 0.3.1 0.3.1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index < 0.12.41 0.12.41 GHSA-5hq9-5r78-2gjh
PyPI llama-index-readers-docugami < 0.3.1 0.3.1 GHSA-5hq9-5r78-2gjh

References