CVE-2025-5472 json
Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index
published 2025-07-07 16 mo ago modified 2026-07-13 3 mo ago also GHSA-3wxx-q3gv-pvvv , PYSEC-2025-251 , PYSEC-2026-1559 , EUVD-2025-20209
- cvss
- 6.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi llama-index-core 0.12.38
- pypi llama-index 0.12.38
- run-llama run-llama/llama_index 0.12.38
Vendor 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-5472 updated cvss 4.3
llama-index: Denial of Service in llama_index
-
Red Hat OpenShift Lightspeed openshift-lightspeed/lightspeed-service-api-rhel9 Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/de-minimal-rhel8, ansible-automation-platform-24/de-minimal-rhel9, ansible-automation-platform-25/de-minimal-rhel8, ansible-automation-platform-25/de-minimal-rhel9, ansible-automation-platform-24/ee-supported-rhel8, ansible-automation-platform-24/ee-supported-rhel9, +5 moreaffected: workaround, no fix available “Fix deferred”
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
- 16 mo ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| GitHub | 3.0 | 6.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index-core | <0.12.38 |
0.12.38 |
| pypi | llama-index | >=0.12.28, <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, patch
-
huntr.com
/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4
web, exploit, third-party-advisory, evidence
-
nvd.nist.gov
/vuln/detail/CVE-2025-5472
advisory
-
github.com
/run-llama/llama_index
package
-
pypi.org
/project/llama-index-core
package
-
github.com
/advisories/GHSA-3wxx-q3gv-pvvv
advisory
Sources
- CVE List CVE-2025-5472
- GitHub Advisory GHSA-3wxx-q3gv-pvvv
- NVD CVE-2025-5472
- OSV PYSEC-2026-1559
- OSV PYSEC-2025-251
Fencer Vulns 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.