CVE-2025-5302 json
Denial of Service (DOS) in JSONReader in run-llama/llama_index
published last yr. modified 4mo ago also GHSA-7753-xrfw-ch36 , PYSEC-2026-1561 , EUVD-2025-25708
- cvss
- 8.6
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 21%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi llama-index-core 0.12.38
- run-llama run-llama/llama_index 0.12.38
Is CVE-2025-5302 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-5302 updated cvss 8.2
llama_index: Denial of Service (DOS) in JSONReader in run-llama/llama_index
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/lightspeed-chatbot-rhel8 2.5.250924-1fixed: vendor fix “There is currently no available mitigation for this flaw. However, upgrading the llama_index package, once available, to the version 0.12.38 addresses this issue.” RHSA-2025:16514
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-24/lightspeed-rhel8, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-minimal-rhel9, ansible-automation-platform-25/lightspeed-rhel8, +8 morenot affected: component not present
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/hub-rhel8 4.10.8-1, ansible-automation-platform-25/hub-web-rhel8 4.10.8-1, ansible-automation-platform-25/receptor-rhel8 1.5.7-7, ansible-automation-platform-25/de-minimal-rhel8 1.1.7-13, ansible-automation-platform-25/controller-rhel8 4.6.20-13, ansible-automation-platform-25/ee-minimal-rhel8 1.0.0-969, +26 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-automation-platform-25/de-minimal-rhel9 1.1.7-12, ansible-automation-platform-25/ee-minimal-rhel9 1.0.0-968, ansible-automation-platform-25/de-supported-rhel9 1.1.7-11, ansible-automation-platform-25/ee-supported-rhel9 1.0.0-1090, ansible-automation-platform-25/ansible-builder-rhel9 3.1.0-254, ansible-automation-platform-25/ee-cloud-services-rhel9 1.0.0-315, +2 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| GitHub | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
| OSV | 3.0 | 8.6 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index-core | <0.12.38 |
0.12.38 |
Affected products
- run-llama run-llama/llama_index
Classification
- Weakness
-
- CWE-674 Uncontrolled Recursion
References
-
github.com
/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635
web
-
huntr.com
/bounties/70041b81-de9e-4046-8c0e-6ccd557048a6
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-5302
advisory
-
github.com
/run-llama/llama_index
package
-
pypi.org
/project/llama-index-core
package
-
github.com
/advisories/GHSA-7753-xrfw-ch36
advisory
Sources
- CVE List CVE-2025-5302
- GitHub Advisory GHSA-7753-xrfw-ch36
- NVD CVE-2025-5302
- OSV PYSEC-2026-1561
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.