CVE-2025-3225
Python vulnerability analysis and mitigation

Overview

An XML Entity Expansion vulnerability (CVE-2025-3225), also known as a 'billion laughs' attack, was discovered in the sitemap parser of the run-llama/llama_index repository, specifically affecting version v0.12.21. The vulnerability was disclosed on July 7, 2025, and affects the Papers Loaders package before version 0.3.2 (in llama-index v0.10.0 and above through v0.12.29) (Miggo, NVD).

Technical details

The vulnerability is classified as CWE-776 (Improper Restriction of Recursive Entity References in DTDs) with a CVSS v3.0 score of 7.5 (High). The root cause was the use of Python's standard xml.etree.ElementTree.fromstring function, which does not protect against recursive entity expansion in DTDs. The vulnerability existed across multiple data readers within the LlamaIndex ecosystem that parse XML from external sources, such as API responses or sitemap files (Miggo).

Impact

When exploited, 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 (NVD, Miggo).

Mitigation and workarounds

The vulnerability has been patched in version 0.3.2 (in llama-index 0.12.29). The fix involves replacing all instances of xml.etree.ElementTree.fromstring with defusedxml.ElementTree.fromstring, which is specifically designed to be secure against such attacks (GitHub Commit, Miggo).

Additional resources


SourceThis report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-67511CRITICAL9.6
  • PythonPython
  • cai-framework
NoNoDec 11, 2025
CVE-2025-13780CRITICAL9.1
  • PythonPython
  • cpe:2.3:a:pgadmin:pgadmin
NoYesDec 11, 2025
CVE-2025-67644HIGH7.3
  • PythonPython
  • langgraph-checkpoint-sqlite
NoYesDec 11, 2025
CVE-2025-67720MEDIUM6.5
  • PythonPython
  • pyrofork
NoYesDec 11, 2025
CVE-2025-67485MEDIUM5.3
  • PythonPython
  • mad-proxy
NoNoDec 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management