CVE-2025-5472

Source
https://cve.org/CVERecord?id=CVE-2025-5472
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5472.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-5472
Aliases
Published
2025-07-07T09:55:56.730Z
Modified
2026-07-15T01:49:03.911151459Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5472.json",
    "cwe_ids": [
        "CWE-674"
    ],
    "cna_assigner": "@huntr_ai"
}
References

Affected packages

Git / github.com/run-llama/llama_index

Affected ranges

Type
GIT
Repo
https://github.com/run-llama/llama_index
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "0.12.28"
        },
        {
            "fixed": "0.12.38"
        }
    ],
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*"
}

Affected versions

v0.*
v0.12.28
v0.12.29
v0.12.30
v0.12.31
v0.12.32
v0.12.33
v0.12.34
v0.12.34.post1
v0.12.34.post2
v0.12.35
v0.12.36
v0.12.37

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-5472.json"