CVE-2025-6211
JSON

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 packageVersionsReported by
run-llama run-llama/llama_indexfrom unspecified before 0.3.1CVE List
llama-index (PyPI)before 0.12.41GitHub Advisory Database, PyPA Advisory Database
llama-index-readers-docugami (PyPI)before 0.3.1GitHub Advisory Database, PyPA Advisory Database
llamaindex llamaindexbefore 0.3.1NVD

All scores

@huntr_ai6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
GitHub6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
PyPA Advisory Database6.5medium CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Classification

CWE-440

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

SourceRecordLicence
CVE ListCVE-2025-6211 changed 2025-07-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-5hq9-5r78-2gjh changed 2026-09-10CC-BY-4.0
NVDCVE-2025-6211 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-1566 changed 2026-07-13CC-BY-4.0
PyPA Advisory DatabasePYSEC-2026-2606 changed 2026-07-13CC-BY-4.0