CVE-2025-3225: Llama index readers papers LlamaIndex Has An XML Entity Vulnerability
HIGHCVE-2025-3225 is a HIGH (CVSS 7.5) llamaindex has an xml entity vulnerability (CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')) affecting Llama index readers papers libraries in the PyPI ecosystem. The issue involves llamaindex has an xml entity expansion vulnerability in its sitemap parser. Remediation is available by upgrading affected packages to version 0.3.2.
CVE-2025-3225 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2025-3225
To remediate this vulnerability, upgrade all affected Llama index readers papers dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install llama-index-readers-papers>=0.3.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show llama-index-readers-papers
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-3225, inspect your installed packages using pip:
pip show llama-index-readers-papers
Analyze the terminal output to locate any version of Llama index readers papers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.2), your application is affected.
Note: The pip show llama-index-readers-papers command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-776: Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion'), where the product uses xml documents and allows their structure to be defined with a document type definition (dtd), but it does not properly control the number of recursive definitions of entities. In Llama index readers papers, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-3225 Affected Llama index readers papers Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
llama-index-readers-papers
|
PyPI |
< 0.3.2
|
0.3.2
|
References
Frequently Asked Questions
What is CVE-2025-3225?
Which Llama index readers papers versions are affected?
What version fixes CVE-2025-3225?
Is llama-index-readers-papers affected?
What is the CVSS score of CVE-2025-3225?
What CWE is associated with CVE-2025-3225?
How can I check PyPI dependencies for CVE-2025-3225?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w42r-mrx7-c633",
"modified" : "2025-07-07T23:59:01Z",
"published" : "2025-07-07T12:30:22Z",
"aliases" : [ "CVE-2025-3225" ],
"summary" : "LlamaIndex has an XML Entity Expansion vulnerability in its sitemap parser",
"details" : "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 the Papers Loaders package before version 0.3.2 (in llama-index v0.10.0 and above through v0.12.29). 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 0.3.2 (in llama-index 0.12.29).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "llama-index-readers-papers"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3225"
}, {
"type" : "WEB",
"url" : "https://github.com/run-llama/llama_index/commit/4f6ee062b19212106a2632af9c9521fc7f0a3584"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/run-llama/llama_index"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/e33c0699-e9a2-49aa-837b-5363205637a2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-776" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-07T23:59:01Z",
"nvd_published_at" : "2025-07-07T10:15:27Z"
}
}