Advisory

GHSA-5hq9-5r78-2gjh

Also known as: CVE-2025-6211, PYSEC-2026-1566, PYSEC-2026-2606

Summary

LlamaIndex vulnerable to data loss through hash collisions in its DocugamiReader class

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2025-07-10 15:31 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

llama-index

PyPI · All systems

Affected

  • introduced 0, fixed 0.12.41 (ecosystem)

Fixed versions

0.12.41

Fix

  • Fixed version 0.12.41
    pip install --upgrade llama-index==0.12.41

llama-index-readers-docugami

PyPI · All systems

Affected

  • introduced 0, fixed 0.3.1 (ecosystem)

Fixed versions

0.3.1

Fix

  • Fixed version 0.3.1
    pip install --upgrade llama-index-readers-docugami==0.3.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences