CVE-2025-5472
CVE-2025-5472 is a medium-severity vulnerability in Llamaindex with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-674.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- EPSS exploit prediction: 0% (26th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2025-20209
- Weakness: CWE-674
- Affected product: Llamaindex
- Published:
- Last modified:
Description
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 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.
Frequently asked questions
- What is CVE-2025-5472?
- 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 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.
- How severe is CVE-2025-5472?
- CVE-2025-5472 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2025-5472 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (26th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2025-5472?
- CVE-2025-5472 affects Llamaindex. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2025-5472?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2025-5472 have an EU (EUVD) identifier?
- Yes. CVE-2025-5472 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-20209.
- When was CVE-2025-5472 published?
- CVE-2025-5472 was published on 2025-07-07 and last updated on 2026-06-17.
References
- https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635
- https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4
Affected products (1)
- cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*
More vulnerabilities in Llamaindex
- CVE-2025-1793 — Critical (CVSS 9.8): Multiple vector store integrations in run-llama/llama_index version v0.12.21 have SQL injection vulnerabilities. These…
- CVE-2025-1750 — Critical (CVSS 9.8): An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version…
- CVE-2024-12909 — Critical (CVSS 9.8): A vulnerability in the FinanceChatLlamaPack of the run-llama/llama_index repository, versions up to v0.12.3, allows for…
- CVE-2024-11958 — Critical (CVSS 9.8): A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository,…
- CVE-2024-3271 — Critical (CVSS 9.8): A command injection vulnerability exists in the run-llama/llama_index repository, specifically within the safe_eval…
- CVE-2024-23751 — Critical (CVSS 9.8): LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL feature in NLSQLTableQueryEngine,…
All CVEs affecting Llamaindex →
Other CWE-674 (Uncontrolled Recursion) vulnerabilities
- CVE-2026-43185 — Critical (CVSS 9.8): In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix signededness bug in…
- CVE-2023-51803 — Critical (CVSS 9.8): LinuxServer.io Heimdall before 2.5.7 does not prevent use of icons that have non-image data such as the "<?php ?>"…
- CVE-2021-41752 — Critical (CVSS 9.8): Stack overflow vulnerability in Jerryscript before commit e1ce7dd7271288be8c0c8136eea9107df73a8ce2 on Oct 20, 2021 due…
- CVE-2018-1000618 — Critical (CVSS 9.8): EOSIO/eos eos version after commit f1545dd0ae2b77580c2236fdb70ae7138d2c7168 contains a stack overflow vulnerability in…
- CVE-2025-10728 — Critical (CVSS 9.4): When the module renders a Svg file that contains a <pattern> element, it might end up rendering it recursively leading…
- CVE-2026-40324 — Critical (CVSS 9.1): Hot Chocolate is an open-source GraphQL server. Prior to versions 12.22.7, 13.9.16, 14.3.1, and 15.1.14, Hot…
Browse all CWE-674 (Uncontrolled Recursion) vulnerabilities →