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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | llama-index | 0.12.29 | PYSEC-2025-250 |
| PyPI | llama-index-readers-papers | 0.3.2 | GHSA-w42r-mrx7-c633 |
| PyPI | llama-index-readers-papers | 0.3.2 | PYSEC-2026-1570 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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