# CVE-2025-5472: Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index

- Severity: Medium 6.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-07T09:55:56.730Z
- Modified: 2026-07-13T07:26:37.515Z
- Also known as: GHSA-3wxx-q3gv-pvvv, PYSEC-2025-251, PYSEC-2026-1559
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- run-llama run-llama/llama_index: from unspecified before 0.12.38
- llama-index-core (PyPI): before 0.12.38
- llamaindex llamaindex: from 0.12.28 before 0.12.38
- llama-index (PyPI): from 0.12.28 before 0.12.38

## Every score

- @huntr_ai: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4> (exploit, evidence, third-party-advisory, web)
- <https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5472> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-core> (package)
- <https://github.com/advisories/GHSA-3wxx-q3gv-pvvv> (advisory)

## Sources

- CVE List: [CVE-2025-5472](https://www.cve.org/CVERecord?id=CVE-2025-5472), CVE Terms of Use, modified 2025-07-07
- GitHub Advisory Database: [GHSA-3wxx-q3gv-pvvv](https://github.com/advisories/GHSA-3wxx-q3gv-pvvv), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2025-5472](https://nvd.nist.gov/vuln/detail/CVE-2025-5472), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2025-251](https://osv.dev/vulnerability/PYSEC-2025-251), CC-BY-4.0, modified 2026-07-13
- PyPA Advisory Database: [PYSEC-2026-1559](https://osv.dev/vulnerability/PYSEC-2026-1559), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2025-5472 · Whole record: https://cve.day/CVE-2025-5472.json · Rebuilt by cve.day 2026-11-25T22:59:00.718Z
