{"id":"CVE-2025-5472","published":"2025-07-07T09:55:56Z","modified":"2025-07-07T11:23:35Z","title":"Denial of Service via Uncontrolled Recursive JSON Parsing in JSONReader in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00388,"percentile":0.33783,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://huntr.com/bounties/df187bda-7911-4823-a19a-e15b2c66b0d4","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/c032843a02ce38fd8f284b2aa5a37fd1c17ae635","tags":[]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.76},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.12.38"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-07T11:17:19.293465Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-core","vulnerableRanges":["<0.12.38"],"patched":["0.12.38"],"from":["GHSA-3wxx-q3gv-pvvv","PYSEC-2026-1559"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":[">=0.12.28, <0.12.38"],"patched":["0.12.38"],"from":["PYSEC-2025-251"],"provenance":"source"}],"summary":{"text":"The JSONReader component of run-llama/llama_index contains a flaw in its recursive JSON parsing, which lacks depth validation and makes it susceptible to stack overflow. An attacker who can submit deeply nested JSON structures over the network, with a user interaction required, can trigger a RecursionError that crashes the application and causes a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:57:06Z"},"euvd":{"id":"EUVD-2025-20209","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-45201","published":"2024-08-22","fixed":"0.10.38","kev":false},{"cve":"CVE-2024-12704","published":"2025-03-20","fixed":"0.12.6","kev":false,"link":{"from":"CVE-2024-12704","to":"CVE-2025-5472","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.6","toFixed":"0.12.38","daysApart":109}]}},{"cve":"CVE-2025-5302","published":"2025-08-25","fixed":"0.12.38","kev":false},{"cve":"CVE-2025-5472","published":"2025-07-07","fixed":"0.12.38","kev":false},{"cve":"CVE-2025-3108","published":"2025-07-06","fixed":"0.12.41","kev":false,"link":{"from":"CVE-2025-5472","to":"CVE-2025-3108","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":-1},{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":-1}]}},{"cve":"CVE-2025-6208","published":"2026-02-02","fixed":"0.12.41","kev":false},{"cve":"CVE-2025-6209","published":"2025-07-07","fixed":"0.12.41","kev":false,"link":{"from":"CVE-2025-5472","to":"CVE-2025-6209","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":0},{"kind":"version-step","provenance":"source","package":"PyPI:llama-index-core","fromFixed":"0.12.38","toFixed":"0.12.41","daysApart":0}]}}],"package":"PyPI:llama-index-core"}}