Vulnerability · Published Jul 7, 2025 · Assigned by @huntr_ai

CVE-2025-3225XML Entity Expansion vulnerability in run-llama/llama_index

High 7.5

In plain English

A high-severity security flaw in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.5%top 58.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

An XML Entity Expansion vulnerability, also known as a 'billion laughs' attack, exists in the sitemap parser of the run-llama/llama_index repository, specifically affecting version v0.12.21. This vulnerability allows an attacker to supply a malicious Sitemap XML, leading to a Denial of Service (DoS) by exhausting system memory and potentially causing a system crash. The issue is resolved in version v0.12.29.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-index0.12.29PYSEC-2025-250
PyPIllama-index-readers-papers0.3.2GHSA-w42r-mrx7-c633
PyPIllama-index-readers-papers0.3.2PYSEC-2026-1570

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before v0.12.29

Weakness: CWE-776 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References