Live threats

All CVEs / Llamaindex

CVE-2025-5472Llamaindex

Medium 6.5 No auth needed

Priority
54
CVSS 3.0
6.5
EPSS
—
Auth required
No
Published
Jul 7, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-674
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Llamaindex.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI llama-index ≥ 0.12.28 < 0.12.38 0.12.38 pip install "llama-index>=0.12.38"
PyPI llama-index-core < 0.12.38 0.12.38 pip install "llama-index-core>=0.12.38"
PyPI llama-index-core < 0.12.38 0.12.38 pip install "llama-index-core>=0.12.38"

Per OSV / GitHub Advisories (PYSEC-2025-251, GHSA-3wxx-q3gv-pvvv, PYSEC-2026-1559). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
llamaindexllamaindex≥ 0.12.28 < 0.12.38

Official sources

References

Links published by the sources. Open them with care.