Skip to content
Fencer Vulns
high 8.6

CVE-2025-5302 json

Denial of Service (DOS) in JSONReader in run-llama/llama_index

published 2025-08-25 14 mo ago modified 2026-07-07 4 mo 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

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-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-1
    fixed: 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 more
    not 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 more
    not 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
14 mo ago

Exploit prediction

0.29% chance of exploitation in the next 30 days, higher than 21% of all scored CVEs (FIRST EPSS, 2026-11-08).

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

References

Sources

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.