Cyber Resilience

CVE-2025-3225

Llamaindex 0.12.21 – 0.12.29

Public PoC
Published
07 July 2025
Modified
17 June 2026
Patch / advisory
CVSS Score v3 7.5
Click a component to see what it means
Raw vectorCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0042 34th percentile
Risk Priority 57 floored blend · peak EPSS

Summary

CVE-2025-3225 is a high-severity XML Entity Expansion (CWE-776) vulnerability in Llamaindex Llamaindex. Its CVSS base score is 7.5 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Endpoint Denial of Service (T1499); ranked at the 34th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to CM-6 (Configuration Settings) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

of Service (DoS) by exhausting system memory and potentially causing a system crash. The issue is resolved in version v0.12.29.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
T1499.003 Application Exhaustion Flood Impact
Adversaries may target resource intensive features of applications to cause a denial of service (DoS), denying availability to those applications.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-12910Same product: Llamaindex Llamaindex
CVE-2025-5472Same product: Llamaindex Llamaindex
CVE-2025-1752Same product: Llamaindex Llamaindex
CVE-2024-12704Same product: Llamaindex Llamaindex
CVE-2024-11958Same product: Llamaindex Llamaindex
CVE-2025-1753Same product: Llamaindex Llamaindex
CVE-2025-1793Same product: Llamaindex Llamaindex
CVE-2025-3108Same product: Llamaindex Llamaindex
CVE-2025-3046Same product: Llamaindex Llamaindex
CVE-2025-6210Same product: Llamaindex Llamaindex

Affected Assets

llamaindex
llamaindex
0.12.21 — 0.12.29

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Secure configuration settings can disable DTD processing or cap entity expansion in XML parsers.

Input validation can enforce limits on XML entity expansion and recursion depth before parsing occurs.

Least-functionality configuration can prohibit unsafe DTD features or external entity resolution.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 full match
prevents

Secure SDLC practices directly prevent introduction of improper recursive entity handling in XML code.

PR.PS-01 mostly match
prevents

Hardened configuration baselines can disable or limit DTD entity expansion in XML parsers.

ID.RA-01 partial match
prevents

Identifying and recording vulnerabilities can discover XML entity expansion flaws before exploitation.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Security testing can detect and block XML entity-expansion vulnerabilities before deployment.

prevents

Secure SDLC mandates input validation and parser hardening that can prevent unbounded entity expansion.

prevents

Application security requirements can explicitly call for limits on XML entity recursion and DTD processing.

prevents

Secure architecture principles discourage unsafe parser configurations that enable entity expansion attacks.

prevents

Secure coding standards directly require disabling or restricting recursive entity references in XML parsers.

References