---
id: CVE-2025-6211
aliases:
  - GHSA-5hq9-5r78-2gjh
  - PYSEC-2026-1566
  - PYSEC-2026-2606
title: >-
  LlamaIndex vulnerable to data loss through hash collisions in its
  DocugamiReader class 
summary: >-
  LlamaIndex vulnerable to data loss through hash collisions in its
  DocugamiReader class 
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L'
vendor: llama-index
product: llama-index
ecosystem: pip
affected:
  - llama-index < 0.12.41
  - llama-index-readers-docugami < 0.3.1
patched:
  - llama-index 0.12.41
  - llama-index-readers-docugami 0.3.1
published: '2025-07-10'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T03:50:25.877040585Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-5hq9-5r78-2gjh'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-6211'
  - url: >-
      https://github.com/run-llama/llama_index/commit/29b2e07e64ed7d302b1cc058185560b28eaa1352
  - url: 'https://github.com/run-llama/llama_index'
  - url: 'https://huntr.com/bounties/1a48a011-a3c5-4979-9ffc-9652280bc389'
tags:
  - osv
  - pip
epss: 0.00316
epssPercentile: 0.21874
ingestedAt: '2026-07-08T18:25:46.008Z'
---

## Overview

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.

## Affected packages

- `llama-index < 0.12.41`
- `llama-index-readers-docugami < 0.3.1`

## Remediation

Upgrade to a patched release:

- `llama-index 0.12.41`
- `llama-index-readers-docugami 0.3.1`
