Security Resilience

CVE-2025-5472

DoS in Llamaindex 0.12.28 – 0.12.38

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

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-5472 is a medium-severity Uncontrolled Recursion (CWE-674) vulnerability in Llamaindex. Its CVSS base score is 6.5 (Medium).

Operationally, 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 SI-10 (Information Input Validation) and SC-5 (Denial-of-service Protection) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

The JSONReader in run-llama/llama_index versions 0.12.28 is vulnerable to a stack overflow due to uncontrolled recursive JSON parsing. This vulnerability allows attackers to trigger a Denial of Service (DoS) by submitting deeply nested JSON structures, leading to a RecursionError and…

more

crashing applications. The root cause is the unsafe recursive traversal design and lack of depth validation, which makes the JSONReader susceptible to stack overflow when processing deeply nested JSON. This impacts the availability of services, making them unreliable and disrupting workflows. The issue is resolved in version 0.12.38.

CWE(s)

Related Threats

CVEs Like This One

CVE-2024-12910Same product: Llamaindex Llamaindex
CVE-2025-1752Same product: Llamaindex Llamaindex
CVE-2024-45201Same product: Llamaindex Llamaindex
CVE-2025-1750Same product: Llamaindex Llamaindex
CVE-2025-6210Same product: Llamaindex Llamaindex
CVE-2024-12909Same product: Llamaindex Llamaindex
CVE-2025-1753Same product: Llamaindex Llamaindex
CVE-2025-6209Same product: Llamaindex Llamaindex
CVE-2024-23751Same product: Llamaindex Llamaindex
CVE-2025-3225Same product: Llamaindex Llamaindex

Affected Assets

llamaindex
llamaindex
0.12.28 — 0.12.38

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Input validation can reject or constrain data that would otherwise drive unbounded recursive calls.

DoS protection mechanisms limit the resource-exhaustion impact of uncontrolled recursion without eliminating the flaw.

System monitoring can observe anomalous resource consumption that signals runaway recursion after it begins.

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

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing in development can detect excessive recursion via static analysis or fuzzing.

prevents

Secure coding standards directly prohibit or constrain recursive constructs that could exhaust stack or memory.

finds

Capacity management includes monitoring and limits that mitigate resource exhaustion from runaway recursion.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-674, a class-level weakness, and none of its children carries one either.

References