# CVE-2025-5302: Denial of Service (DOS) in JSONReader in run-llama/llama_index

- Severity: High 8.6 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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.33%, higher than 27% of CVEs (2026-12-01)
- Published: 2025-08-25T15:03:18.097Z
- Modified: 2026-07-07T17:56:52.377Z
- Also known as: GHSA-7753-xrfw-ch36, PYSEC-2026-1561
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A denial of service vulnerability exists in the JSONReader component of the run-llama/llama_index repository, specifically in version v0.12.37. The vulnerability is caused by uncontrolled recursion when parsing deeply nested JSON files, which can lead to Python hitting its maximum recursion depth limit. This results in high resource consumption and potential crashes of the Python process. 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

## Every score

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

## References

- <https://huntr.com/bounties/70041b81-de9e-4046-8c0e-6ccd557048a6> (web)
- <https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-5302> (advisory)
- <https://github.com/run-llama/llama_index> (package)
- <https://pypi.org/project/llama-index-core> (package)
- <https://github.com/advisories/GHSA-7753-xrfw-ch36> (advisory)

## Sources

- CVE List: [CVE-2025-5302](https://www.cve.org/CVERecord?id=CVE-2025-5302), CVE Terms of Use, modified 2025-08-25
- GitHub Advisory Database: [GHSA-7753-xrfw-ch36](https://github.com/advisories/GHSA-7753-xrfw-ch36), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2025-5302](https://nvd.nist.gov/vuln/detail/CVE-2025-5302), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1561](https://osv.dev/vulnerability/PYSEC-2026-1561), CC-BY-4.0, modified 2026-07-07

---

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